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



commit 321553b13913847b79d5585f59133cbb83c3f5fe
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 64d1ac6..6b79759 100644
--- a/clutter/clutter-gesture-action.c
+++ b/clutter/clutter-gesture-action.c
@@ -458,7 +458,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]