You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I use a Lenovo Thinkpad X1 gen 10.
This laptop's track pad comes with two native buttons - a left and a right, with no native middle mouse button action.
In cq-editor, the middle mouse button is used to pan the view. Also in cq-editor, there are two different ways to zoom in and zoom out - first with the "wheel action" and next with the right mouse button (zoom from point).
On my Thinkpad I am able to zoom using both of these methods but I am currently not able to pan the view, because I have no middle mouse button (without jumping through some hoops).
It would be suggested to switch the functionality of these two buttons, so that on systems with only left & right mouse buttons (and with the ability to scroll, i.e. "wheelEvent()"), the user is still able to rotate, pan, and zoom.
To make this change involves affected three lines of code in occt_widget.py.
You would replace the single instance of "Qt.MiddleButton" to be "Qt.RightButton" and you would at the same time replace the two instances of "Qt.RightButton" to be "Qt.MiddleButton".
If such a change is not desired, then perhaps a user option can be exposed that performs this trick.
Final note, with the hypothetical right mouse button drag being responsible for pan view action, the user interface controls would come very close to resembling those of OpenSCAD.
The text was updated successfully, but these errors were encountered:
One more possibility.
I experimented with the use of Shift or Ctrl key as a modifier to the mouse events coming in. In other words it's possible to employ a Shift+RightMouseButton strategy to perform a pan view operation. However the stateful nature of such a change adds more complexity than is warranted.
Hi, I use a Lenovo Thinkpad X1 gen 10.
This laptop's track pad comes with two native buttons - a left and a right, with no native middle mouse button action.
In cq-editor, the middle mouse button is used to pan the view. Also in cq-editor, there are two different ways to zoom in and zoom out - first with the "wheel action" and next with the right mouse button (zoom from point).
On my Thinkpad I am able to zoom using both of these methods but I am currently not able to pan the view, because I have no middle mouse button (without jumping through some hoops).
It would be suggested to switch the functionality of these two buttons, so that on systems with only left & right mouse buttons (and with the ability to scroll, i.e. "wheelEvent()"), the user is still able to rotate, pan, and zoom.
To make this change involves affected three lines of code in occt_widget.py.
You would replace the single instance of "Qt.MiddleButton" to be "Qt.RightButton" and you would at the same time replace the two instances of "Qt.RightButton" to be "Qt.MiddleButton".
If such a change is not desired, then perhaps a user option can be exposed that performs this trick.
Final note, with the hypothetical right mouse button drag being responsible for pan view action, the user interface controls would come very close to resembling those of OpenSCAD.
The text was updated successfully, but these errors were encountered: