Fix for tooltip blinking (#4713)

Moved where active tooltips are canceled to wait until the mouse actually moves off the control.
This commit is contained in:
captainwasabi 2016-05-20 07:56:42 -04:00 committed by Rémi Verschelde
parent 5e0f0a962a
commit 4b80895082

View File

@ -1841,6 +1841,8 @@ void Viewport::_gui_input_event(InputEvent p_event) {
if (gui.mouse_over)
gui.mouse_over->notification(Control::NOTIFICATION_MOUSE_EXIT);
_gui_cancel_tooltip();
if (over)
over->notification(Control::NOTIFICATION_MOUSE_ENTER);
@ -1849,8 +1851,6 @@ void Viewport::_gui_input_event(InputEvent p_event) {
gui.mouse_over=over;
_gui_cancel_tooltip();
if (gui.drag_preview) {
gui.drag_preview->set_pos(mpos);
}