Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make touchpads and touch-screens usable for navigating the 3D view (with patch inside) #419

Open
ncsaba opened this issue Dec 17, 2023 · 1 comment

Comments

@ncsaba
Copy link

ncsaba commented Dec 17, 2023

Hi all,

The following patch enables the following behavior:

  • if the mouse drag happens after a previous click with the left mouse button (i.e. a "double click mouse drag"), it will pan instead of rotating;
  • panning will also be done instead of rotation if the CTRL button is held down while dragging with the left mouse button.

This enables panning with the mouse-pad or on a touch screen, which is impossible otherwise on some device/OS combinations without sacrificing other useful functionality. Normal mouse operation should not be affected (much) by this addition.

On a touch-screen panning will happen after quick succession of a touch and a drag. With the mouse-pad the preferred way is to hold CTRL down while dragging, but a double-click (two taps) followed quickly (almost like a triple-tap) by a mouse drag will also trigger panning instead of zooming.

I used the CTRL button instead of SHIFT (some other CAD programs do that), because on Windows pressing SHIFT a few times will trigger Sticky keys, while the CTRL key won't have any such effect.

Patch is included here:

double_click_drag_means_pan.patch

Hope it helps !

Cheers,
Csaba

@zwn
Copy link

zwn commented Feb 16, 2024

For the sake of consistency, Freecad has a great navigation mode called "Touchpad". It combines pointer movement with keyboard modifiers - Shift for panning and Ctrl for rotating. In involves no clicks, no drags, just movement. In addition to the description in the linked page, two finger touchpad movement up/down zooms.

I use it also with a regular mouse (mouse wheel for zoom).

I think it would be worth following Freepads lead here.

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

No branches or pull requests

2 participants