summaryrefslogtreecommitdiff
path: root/gtk/gtkgesture.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-02-25 20:30:11 +0100
committerCarlos Garnacho <carlosg@gnome.org>2015-03-02 12:01:07 +0100
commit2e52e9964b5c0d463791b26bc0c17a162ea78495 (patch)
tree055f1c622cb2da490a8b86a2b6818fa6450da1ef /gtk/gtkgesture.c
parenta4e0de183967d51f5ef7ec602f96ad6c33456701 (diff)
downloadgtk+-2e52e9964b5c0d463791b26bc0c17a162ea78495.tar.gz
gesture: On cancel, remove touchpoint before checking the recognized state
Otherwise the touch being removed doesn't account in recognition.
Diffstat (limited to 'gtk/gtkgesture.c')
-rw-r--r--gtk/gtkgesture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index cfdd3d0699..826b741ab1 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -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;
}