[gtk+/gestures: 32/55] gesture: Only recognize gestures with as many interacting touches as those handled



commit 4a801178080be4a252beebf4a9402ae2313a473b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 21 18:13:41 2014 +0100

    gesture: Only recognize gestures with as many interacting touches as those handled
    
    If a gesture has denied sequences (so those are presumably handled above/below
    the widget), it shouldn't attempt to handle extra touches, even if those end
    up matching the expected number of touches.

 gtk/gtkgesture.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index c24fc59..e4f9306 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -200,6 +200,7 @@ _gtk_gesture_check_recognized (GtkGesture       *gesture,
     _gtk_gesture_set_recognized (gesture, FALSE, sequence);
   else if (!priv->recognized &&
            current_n_points == priv->n_points &&
+           g_hash_table_size (priv->points) == priv->n_points &&
            _gtk_gesture_do_check (gesture))
     _gtk_gesture_set_recognized (gesture, TRUE, sequence);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]