diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-08-03 18:30:05 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-08-05 07:35:30 +1000 |
commit | a5450e99de680155b3ae9ebf84b8f196caa31c27 (patch) | |
tree | 4d00a4894fbfb9b445a09145bdd9dbf632ab4443 | |
parent | 1ea9fbfd4c55a28db1227b65cfa036aec5d37ef3 (diff) |
gestures: reduce the 2fg scroll timeout to 150ms
This timeout is there to switch to scrolling when the fingers rest on the
touchpad unmoving and thus avoids the initial scroll threshold for slow
scrolls.
Since the only other gestures we support are swipe (usually a fast movement)
and pinch-and-rotate (also a fast movement) we can drop the timeout down
significantly and thus make the scroll feel more reactive.
https://bugs.freedesktop.org/show_bug.cgi?id=93504
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | src/evdev-mt-touchpad-gestures.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gestures.c index acfc875..8b854b3 100644 --- a/src/evdev-mt-touchpad-gestures.c +++ b/src/evdev-mt-touchpad-gestures.c @@ -30,7 +30,7 @@ #include "evdev-mt-touchpad.h" #define DEFAULT_GESTURE_SWITCH_TIMEOUT ms2us(100) -#define DEFAULT_GESTURE_2FG_SCROLL_TIMEOUT ms2us(500) +#define DEFAULT_GESTURE_2FG_SCROLL_TIMEOUT ms2us(150) static inline const char* gesture_state_to_str(enum tp_gesture_state state) |