Skip to content

Commit

Permalink
Cancel tooltips when mouse leaves window
Browse files Browse the repository at this point in the history
This is a backport of 807431c.
  • Loading branch information
jadoc committed Aug 23, 2024
1 parent b58d16f commit bea0702
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ void Viewport::_notification(int p_what) {
gui.mouse_in_window = false;
_drop_physics_mouseover();
_drop_mouse_over();
_gui_cancel_tooltip();
// When the mouse exits the window, we want to end mouse_over, but
// not mouse_focus, because, for example, we want to continue
// dragging a scrollbar even if the mouse has left the window.
Expand Down

0 comments on commit bea0702

Please sign in to comment.