Skip to content

Commit

Permalink
touchpad: change the min vector for the scroll lock to 0.15
Browse files Browse the repository at this point in the history
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 <peter.hutterer@who-t.net>
  • Loading branch information
whot committed Aug 13, 2018
1 parent 13bda5a commit 24da4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evdev-mt-touchpad-gestures.c
Expand Up @@ -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;
Expand Down

0 comments on commit 24da4ec

Please sign in to comment.