mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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>
This commit is contained in:
parent
6239e6db18
commit
2c57f0986a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user