[clutter/clutter-1.14] gesture-action: fix trigger edge after behavior with more than 1 point
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.14] gesture-action: fix trigger edge after behavior with more than 1 point
- Date: Tue, 23 Apr 2013 16:38:15 +0000 (UTC)
commit 1ddef9576d87c98fafbcefe3108f04866630c2cd
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Mon Apr 22 14:57:47 2013 -0700
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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-gesture-action.c b/clutter/clutter-gesture-action.c
index 27eb1a5..329b170 100644
--- a/clutter/clutter-gesture-action.c
+++ b/clutter/clutter-gesture-action.c
@@ -448,7 +448,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]