gesture-action: fix trigger edge after behavior with more than 1 point

https://bugzilla.gnome.org/show_bug.cgi?id=698669
This commit is contained in:
Lionel Landwerlin 2013-04-22 14:57:47 -07:00
parent 2b25b056ad
commit 04f20909e3

View File

@ -456,7 +456,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;