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
This commit is contained in:
Sjoerd Simons 2013-05-25 01:20:32 +02:00 committed by Emmanuele Bassi
parent 76fb468319
commit 3bcee2b122

View File

@ -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);