From 24da4ecd85b42b2415b8a4a661cd75237d447faf Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 13 Aug 2018 14:00:54 +1000 Subject: [PATCH] touchpad: change the min vector for the scroll lock to 0.15 This makes the difference between noticable delay and unnoticable while having virtually no false positives (for me). https://gitlab.freedesktop.org/libinput/libinput/issues/101 Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-gestures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gestures.c index f62c942e..1a3518e5 100644 --- a/src/evdev-mt-touchpad-gestures.c +++ b/src/evdev-mt-touchpad-gestures.c @@ -316,7 +316,7 @@ tp_gesture_apply_scroll_constraints(struct tp_dispatch *tp, /* Ensure vector is big enough (in mm per EVENT_TIMEOUT) to be confident * of direction. Larger = harder to enable diagonal/free scrolling. */ - const double MIN_VECTOR = 0.25; + const double MIN_VECTOR = 0.15; if (slope >= DEGREE_30 && vector_length > MIN_VECTOR) { tp->scroll.duration.v += tdelta;