Merge pull request #77933 from KoBeWi/do_not_the_tooltip

Cancel tooltip when mouse leaves viewport
This commit is contained in:
Rémi Verschelde 2023-06-07 11:02:16 +02:00
commit bd9b24d391
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -611,6 +611,7 @@ void Viewport::_notification(int p_what) {
gui.mouse_in_viewport = false;
_drop_physics_mouseover();
_drop_mouse_over();
_gui_cancel_tooltip();
// When the mouse exits the viewport, 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 viewport.