From 04f20909e398d3e6699f6e02d898dde7c5864429 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 22 Apr 2013 14:57:47 -0700 Subject: [PATCH] gesture-action: fix trigger edge after behavior with more than 1 point https://bugzilla.gnome.org/show_bug.cgi?id=698669 --- clutter/clutter-gesture-action.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-gesture-action.c b/clutter/clutter-gesture-action.c index c031c9804..5f9fa7b11 100644 --- a/clutter/clutter-gesture-action.c +++ b/clutter/clutter-gesture-action.c @@ -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;