[clutter/clutter-1.22] swipe-action: Fix typo
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.22] swipe-action: Fix typo
- Date: Tue, 26 May 2015 17:11:06 +0000 (UTC)
commit 69dee9c5eb5711e20d63d5aa5cfe249321d02228
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri May 22 18:40:34 2015 +0200
swipe-action: Fix typo
X coords are meant to compare with distance_x.
clutter/clutter-swipe-action.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-swipe-action.c b/clutter/clutter-swipe-action.c
index 38e1830..f0f8dbd 100644
--- a/clutter/clutter-swipe-action.c
+++ b/clutter/clutter-swipe-action.c
@@ -157,7 +157,7 @@ gesture_end (ClutterGestureAction *action,
last_event = clutter_gesture_action_get_last_event (action, 0);
clutter_event_get_coords (last_event, &release_x, &release_y);
- if (release_x - press_x > priv->distance_y)
+ if (release_x - press_x > priv->distance_x)
direction |= CLUTTER_SWIPE_DIRECTION_RIGHT;
else if (press_x - release_x > priv->distance_x)
direction |= CLUTTER_SWIPE_DIRECTION_LEFT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]