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

This commit is contained in:
Carlos Garnacho 2014-03-25 13:45:17 +01:00
parent 55683c075c
commit c49ac32393

View File

@ -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);