mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 07:00:06 +01:00
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 <peter.hutterer@who-t.net>
This commit is contained in:
parent
13bda5adcb
commit
24da4ecd85
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue