Commit c49ac323 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

swipe: Dont emit swipe() if the gesture was denied rather than finished

parent 55683c07
......@@ -143,6 +143,9 @@ gtk_gesture_swipe_end (GtkGesture *gesture,
gdouble velocity_x, velocity_y;
guint32 evtime;
if (gtk_gesture_get_sequence_state (gesture, sequence) == GTK_EVENT_SEQUENCE_DENIED)
return;
priv = gtk_gesture_swipe_get_instance_private (swipe);
gtk_gesture_get_last_update_time (gesture, sequence, &evtime);
_gtk_gesture_swipe_clear_backlog (swipe, evtime);
......
Supports Markdown
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