Commit 09a29670 authored by Peter Hutterer's avatar Peter Hutterer

touchpad: reduced the 2fg scroll threshold to 1mm

At least on the t440, this is enough to trigger correct detection between
pinch and scroll 90% of the time. Since scrolling is significantly more
prevalent than gesturing, erring on the side of scrolling at the cost of
misdetecting some gestures is acceptable.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 12e9a940
......@@ -195,7 +195,7 @@ tp_gesture_get_direction(struct tp_dispatch *tp, struct tp_touch *touch)
(tp->device->model_flags & EVDEV_MODEL_ELANTECH_TOUCHPAD) == 0)
move_threshold = TP_MM_TO_DPI_NORMALIZED(4);
else
move_threshold = TP_MM_TO_DPI_NORMALIZED(2);
move_threshold = TP_MM_TO_DPI_NORMALIZED(1);
delta = device_delta(touch->point, touch->gesture.initial);
......
......@@ -294,13 +294,13 @@ START_TEST(gestures_spread)
for (i = 0; i < 15; i++) {
litest_push_event_frame(dev);
if (dir_x > 0.0)
dir_x += 2;
dir_x += 1;
else if (dir_x < 0.0)
dir_x -= 2;
dir_x -= 1;
if (dir_y > 0.0)
dir_y += 2;
dir_y += 1;
else if (dir_y < 0.0)
dir_y -= 2;
dir_y -= 1;
litest_touch_move(dev,
0,
50 + dir_x,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment