mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-24 20:10:23 +01:00
gestures: avoid processing the last hold and motion event twice
During the transition from GESTURE_STATE_HOLD_AND_MOTION to GESTURE_STATE_POINTER_MOTION the last pointer motion event was processed twice. Fix #680 Signed-off-by: José Expósito <jose.exposito89@gmail.com>
This commit is contained in:
parent
89cd0f990e
commit
cf929e9835
1 changed files with 3 additions and 3 deletions
|
|
@ -1256,12 +1256,12 @@ tp_gesture_post_gesture(struct tp_dispatch *tp, uint64_t time,
|
|||
if (tp->gesture.state == GESTURE_STATE_HOLD)
|
||||
tp_gesture_handle_state_hold(tp, time, ignore_motion);
|
||||
|
||||
if (tp->gesture.state == GESTURE_STATE_HOLD_AND_MOTION)
|
||||
tp_gesture_handle_state_hold_and_pointer_motion(tp, time);
|
||||
|
||||
if (tp->gesture.state == GESTURE_STATE_POINTER_MOTION)
|
||||
tp_gesture_handle_state_pointer_motion(tp, time);
|
||||
|
||||
if (tp->gesture.state == GESTURE_STATE_HOLD_AND_MOTION)
|
||||
tp_gesture_handle_state_hold_and_pointer_motion(tp, time);
|
||||
|
||||
if (tp->gesture.state == GESTURE_STATE_SCROLL)
|
||||
tp_gesture_handle_state_scroll(tp, time);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue