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:
Carlos Garnacho 2015-02-25 20:30:11 +01:00
parent a4e0de1839
commit 2e52e9964b

View File

@ -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;
}