diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index faa609d8477..8609b779446 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1875,13 +1875,13 @@ void Viewport::_gui_input_event(Ref p_event) { } if (over != gui.mouse_over) { + if (!gui.mouse_over) { + _drop_physics_mouseover(); + } _drop_mouse_over(); _gui_cancel_tooltip(); if (over) { - if (!gui.mouse_over) { - _drop_physics_mouseover(); - } _gui_call_notification(over, Control::NOTIFICATION_MOUSE_ENTER); gui.mouse_over = over; }