From db1185318d96c206d522642bda6aa78d387ac2ff Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 25 May 2013 01:20:32 +0200 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-gesture-action.c b/clutter/clutter-gesture-action.c index 2846227eb..eb47b6db7 100644 --- a/clutter/clutter-gesture-action.c +++ b/clutter/clutter-gesture-action.c @@ -486,7 +486,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); -- cgit v1.2.1