[gtk+] gesture: On cancel, remove touchpoint before checking the recognized state



commit 2e52e9964b5c0d463791b26bc0c17a162ea78495
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]