[gtk+/wip/garnacho/window-dragging: 7/9] gesture: On cancel, remove touchpoint before checking the recognized state
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/garnacho/window-dragging: 7/9] gesture: On cancel, remove touchpoint before checking the recognized state
- Date: Thu, 26 Feb 2015 13:36:08 +0000 (UTC)
commit 4c1312028a88072480bcace5aa5610deef7bdcd8
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Feb 25 20:30:11 2015 +0100
gesture: On cancel, remove touchpoint before checking the recognized state
Otherwise the touch being removed doesn't account in recognition.
gtk/gtkgesture.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index cfdd3d0..826b741 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]