[clutter/clutter-1.16] gesture-action: begin gesture as soon as the number of touchpoints is reached



commit 3bcee2b1225d266b79ee5f05b03f621728d82d9e
Author: Sjoerd Simons <sjoerd greynoise nl>
Date:   Sat May 25 01:20:32 2013 +0200

    gesture-action: begin gesture as soon as the number of touchpoints is reached
    
    1ddef9576d87c98fafbcefe3108f04866630c2cd had its logic the
    wrong way round, a gesture should begin as soon as the requested number
    of touchpoints is reached. Correcting this fixes tap events
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700980

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


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