eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
586 stars 97 forks source link

Manipulation of flow node view with touchpad #618

Open ajayre opened 1 week ago

ajayre commented 1 week ago

This is what I currently am working with:

Screenshot 2024-11-02 221952

It would be nice if there were scrollbars for the view area so I can zoom in and then pan around. Also a zoom to fit everything would be nice.

If I right-click and choose Center View then it wastes a lot of space on the left.

Perhaps this is easier with a mouse but I am using a laptop with a touchpad and it is getting a bit unwieldy and painful to use.

Thanks.

mvladic commented 1 week ago

Perhaps this is easier with a mouse but I am using a laptop with a touchpad and it is getting a bit unwieldy and painful to use.

With the mouse you can use middle or right button to pan around. With the touchpad I only tested with the Mac and panning with two fingers and pinch to zoom works good in my opinion. I just tested on the Linux Acer laptop and panning with two fingers works, but as you say it is unwieldy to use, i.e. it is to sensitive. On this laptop pinch to zoom doesn't work at all.

mvladic commented 1 week ago

Panning and zooming with the touchpad on the Lenovo Thinkpad laptop on Windows also works good. What operating system are you using?

mvladic commented 1 week ago

I just made some tuning for the touchpad, I hope this will improve touchpad usage. If pinch to zoom is not possible on your laptop then you can use CTRL+"two finger touch gesture" to zoom in and zoom out.

ajayre commented 1 week ago

Windows 11.

Pinch to zoom works. Two fingers to pan doesn't work.

mvladic commented 1 week ago

Two fingers to pan doesn't work.

Does it not work at all or does it sometimes mix panning and zooming (because both gestures use two fingers)?

ajayre commented 1 week ago

Doesn't do anything at all.

mvladic commented 1 week ago

Hm, it works on my Lenovo Thinkpad X1 Extreme WIndows 11 laptop. Does two finger panning/scrolling work in other programs?

mvladic commented 1 week ago

Hm, it works on my Lenovo Thinkpad X1 Extreme WIndows 11 laptop

On this laptop I have an option to enable/disable two finger scrolling:

image

ajayre commented 1 week ago

Yes. I couldn't live without it. For example works in Chrome, Notepad++, Visual Studio, etc.

ajayre commented 1 week ago

Note that two-finger panning would be nice but I am perfectly happy with scroll bars.

mvladic commented 1 week ago

Ok, I will investigate how scroll bars can be added. There is a complications because page view editor can grow indefinitely in all directions.

I'm curious, what is your laptop model? Maybe I can find a similar laptop to reproduce this problem.

mvladic commented 1 week ago

BTW on my Thinkpad laptop, panning also works with one finger if I keep pressed right touchpad button (right button press is detected when I press touchpad on the bottom right corner of the touchpad).

ajayre commented 1 week ago

Yes, I understand the technical difficulty...

I just tried it, right-click and drag does work for panning.

Lenovo Legion.

ajayre commented 1 week ago

Instead of scrollbars how about toolbar buttons for zoom and pan modes?

mvladic commented 1 week ago

For now, I made a change so you can pan around with the ALT key + "single finger drag".