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 fda406b4a8
commit 321553b139

View File

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