mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
gesture: On cancel, remove touchpoint before checking the recognized state
Otherwise the touch being removed doesn't account in recognition.
This commit is contained in:
parent
a4e0de1839
commit
2e52e9964b
@ -1373,8 +1373,9 @@ _gtk_gesture_cancel_sequence (GtkGesture *gesture,
|
||||
return FALSE;
|
||||
|
||||
g_signal_emit (gesture, signals[CANCEL], 0, sequence);
|
||||
_gtk_gesture_check_recognized (gesture, sequence);
|
||||
_gtk_gesture_remove_point (gesture, data->event);
|
||||
_gtk_gesture_check_recognized (gesture, sequence);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user