Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Sep 7, 2025

This PR implements the feature request to change the drag button for panning CAD files from the right mouse button to the left mouse button, providing a more intuitive user experience.

Changes Made

  • Mouse interaction: Modified OnCADPictBoxMouseDown in CADImaging.cs to detect MouseButtons.Left instead of MouseButtons.Right for initiating drag operations
  • Documentation: Updated README.md usage instructions to reflect the new behavior

Behavior Changes

Before:

  • Right press and drag to pan the view
  • Left double-click to reset scaling
  • Mouse wheel to zoom

After:

  • Left press and drag to pan the view
  • Left double-click to reset scaling (unchanged)
  • Mouse wheel to zoom (unchanged)

The change maintains full compatibility with existing functionality. Double-click reset scaling continues to work seamlessly with the left mouse button, as Windows Forms handles double-click as a separate event from the drag operations.

Technical Details

This is a minimal, surgical change affecting only the mouse button detection logic. The drag operation itself, cursor management, and all other mouse interactions remain identical to ensure stability and consistency.

Fixes #2.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Copilot Copilot AI assigned Copilot and emako Sep 7, 2025
Copy link
Author

Copilot AI commented Sep 7, 2025

@emako 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@Copilot Copilot AI changed the title [WIP] [FR] Drag button to change to left mouse button Change drag button from right to left mouse button for CAD panning Sep 7, 2025
@Copilot Copilot AI requested a review from emako September 7, 2025 18:43
Copilot finished work on behalf of emako September 7, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Drag button to change to left mouse button

2 participants