summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@greynoise.nl>2013-05-25 01:20:32 +0200
committerEmmanuele Bassi <ebassi@gnome.org>2013-06-12 11:22:45 +0100
commitdb1185318d96c206d522642bda6aa78d387ac2ff (patch)
tree4a9a657d8400de5e96507f6ed53c5ebc2e0bb11c
parent3520ac94ab1eba257c3214dcf01fc524fafdb6c2 (diff)
downloadclutter-db1185318d96c206d522642bda6aa78d387ac2ff.tar.gz
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
-rw-r--r--clutter/clutter-gesture-action.c2
1 files changed, 1 insertions, 1 deletions
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);