mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 02:58:08 +02:00
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 <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit 28205d6f29)
This commit is contained in:
parent
983a8ec4c2
commit
53b021a1da
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue