mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
gesture: Handle GDK_TOUCH_CANCEL events
The wayland windowing backend emits such events for instance, so have gestures cancel the sequence as those events get through.
This commit is contained in:
parent
d9e6395ee9
commit
e080eafef8
@ -523,6 +523,9 @@ gtk_gesture_handle_event (GtkEventController *controller,
|
||||
_gtk_gesture_check_recognized (gesture, sequence))
|
||||
g_signal_emit (gesture, signals[UPDATE], 0, sequence);
|
||||
break;
|
||||
case GDK_TOUCH_CANCEL:
|
||||
gtk_gesture_cancel_sequence (gesture, sequence);
|
||||
break;
|
||||
default:
|
||||
/* Unhandled event */
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user