gesturesingle: check the current sequence before resetting the pressed button

This commit is contained in:
Carlos Garnacho 2014-04-08 21:06:39 +02:00
parent 490c356954
commit cdb5ba9426

View File

@ -169,7 +169,8 @@ gtk_gesture_single_handle_event (GtkEventController *controller,
priv->current_button = button;
}
else if (event->type == GDK_BUTTON_RELEASE || event->type == GDK_TOUCH_END)
else if (sequence == priv->current_sequence &&
(event->type == GDK_BUTTON_RELEASE || event->type == GDK_TOUCH_END))
priv->current_button = 0;
return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_single_parent_class)->handle_event (controller, event);