Preview plot with touchscreen gestures
- Wischi
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 7
15 May 2025 17:11 - 15 May 2025 17:13 #328525
by Wischi
Preview plot with touchscreen gestures was created by Wischi
Hello everyone,
i was facing the same problem preview plot bug in LinuxCNC 2.9.4 with Gmoccapy 3.4.9 as described in this thread: Question: Gmoccapy 3.4.2 and touchscreen
Preview only moves a couple of mm then stops.
So i decided to change the gremlin.py to use the Gtk3 Gestures. With the modified version you can rotate the preview with one finger again, but also zoom in and out with pinch gestures as well as pan with two fingers. In X, Y, Z view the rotation is locked, only zoom + pan. As of right now it will disable the mouse, but my machine only has the touchscreen so for me its no problem.
~$xinput list show my touchscreen as:
No further driver installed. Tested with fresh 2.9.4 live iso.
Just replace gremlin.py in /usr/lib/python3/dist-packages/
I just wanted to drop this file in here in case someone has the same problem. It does not work in Axis though! There the preview jumps to a random place, but it is the same behaviour with the original gremlin.
Also made a small video:
i was facing the same problem preview plot bug in LinuxCNC 2.9.4 with Gmoccapy 3.4.9 as described in this thread: Question: Gmoccapy 3.4.2 and touchscreen
Preview only moves a couple of mm then stops.
So i decided to change the gremlin.py to use the Gtk3 Gestures. With the modified version you can rotate the preview with one finger again, but also zoom in and out with pinch gestures as well as pan with two fingers. In X, Y, Z view the rotation is locked, only zoom + pan. As of right now it will disable the mouse, but my machine only has the touchscreen so for me its no problem.
~$xinput list show my touchscreen as:
eGalaxTouch Virtual Device for Single
eGalaxTouch Virtial Device for TouchNo further driver installed. Tested with fresh 2.9.4 live iso.
Just replace gremlin.py in /usr/lib/python3/dist-packages/
I just wanted to drop this file in here in case someone has the same problem. It does not work in Axis though! There the preview jumps to a random place, but it is the same behaviour with the original gremlin.
Also made a small video:
Last edit: 15 May 2025 17:13 by Wischi.
The following user(s) said Thank You: juergen-home, tommylight, Aciera, HansU
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4613
- Thank you received: 2042
15 May 2025 18:02 #328526
by Aciera
Replied by Aciera on topic Preview plot with touchscreen gestures
Nice, thanks for sharing.
Please Log in or Create an account to join the conversation.
- HansU
-
- Offline
- Moderator
-
Less
More
- Posts: 697
- Thank you received: 212
09 Dec 2025 14:07 #339918
by HansU
Replied by HansU on topic Preview plot with touchscreen gestures
Thanks for that fix.
But this works only for multitouch screens. For resistive screens you can only rotate the view.
Furthermore this also affects the setting for the mouse - you have always rotate on the left button and zoom on the wheel. Dragging does not work in any setting.
But this works only for multitouch screens. For resistive screens you can only rotate the view.
Furthermore this also affects the setting for the mouse - you have always rotate on the left button and zoom on the wheel. Dragging does not work in any setting.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.076 seconds