gesture: Only track non denied sequences in get_last_updated_sequence()

This commit is contained in:
Carlos Garnacho 2014-03-21 17:34:41 +01:00
parent b7435a0290
commit d89e810bd9

View File

@ -363,9 +363,10 @@ gtk_gesture_handle_event (GtkEventController *controller,
priv = gtk_gesture_get_instance_private (gesture);
sequence = gdk_event_get_event_sequence (event);
priv->last_sequence = sequence;
was_recognized = gtk_gesture_is_recognized (gesture);
if (gtk_gesture_get_sequence_state (gesture, sequence) != GTK_EVENT_SEQUENCE_DENIED)
priv->last_sequence = sequence;
switch (event->type)
{