bulletmark / libinput-gestures

Actions gestures on your touchpad using libinput
3.93k stars 241 forks source link

Config option to start action when gesture starts #354

Closed guiodic closed 1 year ago

guiodic commented 1 year ago

It would be useful to be able to configure libinput-gestures to start the action when the gesture starts, with a configurable delay.

Thanks!

bulletmark commented 1 year ago

Please explain why you think anybody would want that? If you want a quicker gesture just move your fingers quicker and/or for a shorter distance.

This program relies completely on libinput to decide and discriminate what gestures are. It doesn't decide the direction (e.g. of the 8 swipe candidates) until libinput says the gesture is completed (i.e. when the users' fingers are lifted) because the user can change their mind, e.g. they can swipe left slightly and then swipe right significantly before they lift their fingers and since this program looks only at the absolute distance traveled at that end then it knows it was a swipe right, not a swipe left. This can be a subtle difference, e.g. between a swipe left and a _swipe leftdown. Or they can move their fingers back to approximately where they started from to "cancel" the gesture because this program requires a threshold movement.

bulletmark commented 1 year ago

No response from OP so closing.