Prechádzať zdrojové kódy

Cancel tooltip when mouse leaves viewport

kobewi 2 rokov pred
rodič
commit
807431c49a
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      scene/main/viewport.cpp

+ 1 - 0
scene/main/viewport.cpp

@@ -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.