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

gesturesingle: check the current sequence before resetting the pressed button

parent 490c3569
...@@ -169,7 +169,8 @@ gtk_gesture_single_handle_event (GtkEventController *controller, ...@@ -169,7 +169,8 @@ gtk_gesture_single_handle_event (GtkEventController *controller,
priv->current_button = button; 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; priv->current_button = 0;
return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_single_parent_class)->handle_event (controller, event); return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_single_parent_class)->handle_event (controller, event);
......
Markdown is supported
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