diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-02-25 20:30:11 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-03-02 12:01:07 +0100 |
commit | 2e52e9964b5c0d463791b26bc0c17a162ea78495 (patch) | |
tree | 055f1c622cb2da490a8b86a2b6818fa6450da1ef /gtk/gtkgesture.c | |
parent | a4e0de183967d51f5ef7ec602f96ad6c33456701 (diff) | |
download | gtk+-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.c | 3 |
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; } |