[clutter] gesture-action: fix trigger edge after behavior with more than 1 point



commit 04f20909e398d3e6699f6e02d898dde7c5864429
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Mon Apr 22 14:57:47 2013 -0700

    gesture-action: fix trigger edge after behavior with more than 1 point
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698669

 clutter/clutter-gesture-action.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-gesture-action.c b/clutter/clutter-gesture-action.c
index c031c98..5f9fa7b 100644
--- a/clutter/clutter-gesture-action.c
+++ b/clutter/clutter-gesture-action.c
@@ -456,7 +456,8 @@ actor_captured_event_cb (ClutterActor *actor,
 
   /* Start the gesture immediately if the gesture has no
    * _TRIGGER_EDGE_AFTER drag threshold. */
-  if (priv->edge != CLUTTER_GESTURE_TRIGGER_EDGE_AFTER)
+  if ((priv->points->len < priv->requested_nb_points) &&
+      (priv->edge != CLUTTER_GESTURE_TRIGGER_EDGE_AFTER))
     begin_gesture (action, actor);
 
   return CLUTTER_EVENT_PROPAGATE;


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