diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 38759b85b9a..7658139caf3 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1872,13 +1872,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; }