Cancel tooltips when mouse leaves window

This is a backport of 807431c49a.
This commit is contained in:
Alex Docauer 2024-08-22 22:12:35 -07:00
parent b58d16f0b8
commit bea070235c
No known key found for this signature in database
GPG key ID: 6F4A5C5714C0A0E1

View file

@ -408,6 +408,7 @@ void Viewport::_notification(int p_what) {
gui.mouse_in_window = false; gui.mouse_in_window = false;
_drop_physics_mouseover(); _drop_physics_mouseover();
_drop_mouse_over(); _drop_mouse_over();
_gui_cancel_tooltip();
// When the mouse exits the window, we want to end mouse_over, but // When the mouse exits the window, we want to end mouse_over, but
// not mouse_focus, because, for example, we want to continue // not mouse_focus, because, for example, we want to continue
// dragging a scrollbar even if the mouse has left the window. // dragging a scrollbar even if the mouse has left the window.