Commit 6ad303b3 authored by Peter Hutterer's avatar Peter Hutterer

gestures: jump straight to swipe for 3+ finger gestures on ST touchpads

The first/second variables are only needed for pinch, so we can skip them
here.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 05bec986
......@@ -240,6 +240,13 @@ tp_gesture_handle_state_none(struct tp_dispatch *tp, uint64_t time)
if (ntouches < 2)
return GESTURE_STATE_NONE;
if (!tp->gesture.enabled) {
if (ntouches == 2)
return GESTURE_STATE_SCROLL;
else
return GESTURE_STATE_SWIPE;
}
first = touches[0];
second = touches[1];
......@@ -271,8 +278,7 @@ tp_gesture_handle_state_none(struct tp_dispatch *tp, uint64_t time)
if (first == second)
return GESTURE_STATE_NONE;
} else if (!tp->gesture.enabled)
return GESTURE_STATE_SCROLL;
}
tp->gesture.initial_time = time;
first->gesture.initial = first->point;
......
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