Skip to content

Commit

Permalink
Merge pull request #78078 from Sauermann/fix-drop-physics-mouse-over
Browse files Browse the repository at this point in the history
Ensure that `_drop_physics_mouseover` only happens when necessary
  • Loading branch information
akien-mga committed Jul 7, 2023
2 parents e00dc3c + 37a96d3 commit 7961bc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1875,13 +1875,13 @@ void Viewport::_gui_input_event(Ref<InputEvent> 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;
}
Expand Down

0 comments on commit 7961bc6

Please sign in to comment.