mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -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;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
|
|
||||||
if (!event_within_drag_threshold (action, event))
|
if (!event_within_drag_threshold (action, event))
|
||||||
click_action_cancel_long_press (action);
|
clutter_click_action_release (action);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user