Increase pinch grace period to 300ms

Windows allows "about a third of a second" to trigger a two-finger
pinch.

https://gitlab.freedesktop.org/libinput/libinput/-/issues/550#implementation-in-other-systems

Signed-off-by: novenary <streetwalkermc@gmail.com>
This commit is contained in:
novenary 2021-04-04 18:44:36 +03:00 committed by Peter Hutterer
parent ca3df8a076
commit c4ea48eda6

View file

@ -30,7 +30,7 @@
#define DEFAULT_GESTURE_SWITCH_TIMEOUT ms2us(100)
#define DEFAULT_GESTURE_SWIPE_TIMEOUT ms2us(150)
#define DEFAULT_GESTURE_PINCH_TIMEOUT ms2us(150)
#define DEFAULT_GESTURE_PINCH_TIMEOUT ms2us(300)
#define PINCH_DISAMBIGUATION_MOVE_THRESHOLD 1.5 /* mm */