Commit 28205d6f authored by Peter Hutterer's avatar Peter Hutterer

touchpad: disable gestures for single-finger touchpads

No point trying to detect pinch gestures if we only have one set of
coordinates. This makes two-finger scrolling on ST touchpads more reactive.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 342bc510
......@@ -550,7 +550,7 @@ tp_init_gesture(struct tp_dispatch *tp)
/* two-finger scrolling is always enabled, this flag just
* decides whether we detect pinch. semi-mt devices are too
* unreliable to do pinch gestures. */
tp->gesture.enabled = !tp->semi_mt;
tp->gesture.enabled = !tp->semi_mt && tp->num_slots > 1;
tp->gesture.twofinger_state = GESTURE_2FG_STATE_NONE;
......
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