Add touchpad gesture rotation with configurable snap threshold#638
Add touchpad gesture rotation with configurable snap threshold#638valpackett wants to merge 1 commit intohorizon-eda:masterfrom
Conversation
|
What a coincidence, a Gtk just gained support for touchpad gestures some days ago.
Apart from that, it works great. Anyhow, my plan is to release version 2.2 in January, so I'll probably merge this once the release is out the door so that this feature can see some more testing before it makes it into a release. |
Oh — I could notice some "doesn't snap" situation but didn't realize what it was. Yeah, I guess I need to do the same wrapping
I technically have a touchscreen laptop… except due to some hardware issue it started to not work most of the time (sometimes I can get a very lucky boot where it does work). I could make my touchpad pretend to be a touchscreen for testing, I guess :D |
|
bump I think that this is a useful thing to have. |
|
Yeah. I have noticed though that it does sometimes rotate when I just want to zoom. Maybe I need to add a locking mechanism that makes it so that if there was no significant rotation after the first N events, rotation is disabled this time. |
Because why not. Certainly feels more convenient to me than going into the menu thing :)
To prevent accidental rotation while just zooming, a relatively large snap threshold is used by default.
If someone wishes to completely avoid the rotation, a huge threshold could be set.
(Other gestures are handled in the canvas but maybe they should be here in imp_layer too, e.g. if zoom would get a similar UI element as rotation has…)