mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
Drop physics mouseover as soon as the mouse moves over a Control
This commit is contained in:
parent
b05e1e7d69
commit
5cf6ebce63
@ -1669,6 +1669,9 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||
_gui_cancel_tooltip();
|
||||
|
||||
if (over) {
|
||||
if (!gui.mouse_over) {
|
||||
_drop_physics_mouseover();
|
||||
}
|
||||
_gui_call_notification(over, Control::NOTIFICATION_MOUSE_ENTER);
|
||||
gui.mouse_over = over;
|
||||
}
|
||||
@ -3039,8 +3042,6 @@ bool Viewport::gui_is_drag_successful() const {
|
||||
}
|
||||
|
||||
void Viewport::set_input_as_handled() {
|
||||
_drop_physics_mouseover();
|
||||
|
||||
if (!handle_input_locally) {
|
||||
ERR_FAIL_COND(!is_inside_tree());
|
||||
Viewport *vp = this;
|
||||
|
Loading…
Reference in New Issue
Block a user