summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2021-01-11 15:29:50 -0300
committerMarge Bot <marge-bot@gnome.org>2021-01-14 13:30:19 +0000
commit2c57f0986a4bb5e5f77ecc9462a92b2380e0d18a (patch)
treeec23970fdc24bf88b4b0da772074845baef7a40f
parent6239e6db182d066f0ebdd18a3624b67dd40a405e (diff)
downloadmutter-2c57f0986a4bb5e5f77ecc9462a92b2380e0d18a.tar.gz
clutter/click-action: Release if motion crosses drag threshold
When the drag threshold is crossed while the click action is pressed, release it. This way, we can avoid spurious "clicked" signals from being emitted. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1667>
-rw-r--r--clutter/clutter/clutter-click-action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c
index bd94d9105..45d87e809 100644
--- a/clutter/clutter/clutter-click-action.c
+++ b/clutter/clutter/clutter-click-action.c
@@ -435,7 +435,7 @@ on_captured_event (ClutterActor *stage,
return CLUTTER_EVENT_PROPAGATE;
if (!event_within_drag_threshold (action, event))
- click_action_cancel_long_press (action);
+ clutter_click_action_release (action);
}
break;