Preview plot with touchscreen gestures

More
15 May 2025 17:11 - 15 May 2025 17:13 #328525 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:
eGalaxTouch Virtual Device for Single
eGalaxTouch Virtial Device for Touch

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:
Attachments:
Last edit: 15 May 2025 17:13 by Wischi.
The following user(s) said Thank You: tommylight, Aciera

Please Log in or Create an account to join the conversation.

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
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.

Moderators: newbynobiHansU
Time to create page: 0.089 seconds
Powered by Kunena Forum