From f0be885e8cd4cff8875d90357da4c3581d235b45 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 24 Feb 2016 13:46:48 +1000 Subject: [PATCH libinput] touchpad: expand immediate pinch detection to 25mm If the fingers are vertically apart by more than 20mm we used to assume a pinch gesture immediately. This is too close together for some users, expand it to 25mm. https://bugs.freedesktop.org/show_bug.cgi?id=94264 Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-gestures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-mt-touchpad-gestures.c b/src/evdev-mt-touchpad-gestures.c index dc8d606..060cafe 100644 --- a/src/evdev-mt-touchpad-gestures.c +++ b/src/evdev-mt-touchpad-gestures.c @@ -336,9 +336,9 @@ tp_gesture_handle_state_unknown(struct tp_dispatch *tp, uint64_t time) return GESTURE_STATE_SCROLL; } - /* Else check if one finger is > 20mm below the others */ + /* Else check if one finger is > 25mm below the others */ vert_distance = abs(first->point.y - second->point.y); - if (vert_distance > 20 * yres && + if (vert_distance > 25 * yres && tp->gesture.enabled) { tp_gesture_init_pinch(tp); return GESTURE_STATE_PINCH; -- 2.5.0