mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Cancel tooltips when mouse leaves window
This is a backport of807431c49a
. (cherry picked from commitbea070235c
)
This commit is contained in:
parent
25cab4a23b
commit
26e7fb2dc1
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue