You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix for tooltip blinking (#4713)
Moved where active tooltips are canceled to wait until the mouse actually moves off the control.
(cherry picked from commit 4b80895082)
This commit is contained in:
committed by
Rémi Verschelde
parent
bea5135518
commit
08fa7a0ff1
@@ -1819,6 +1819,8 @@ void Viewport::_gui_input_event(InputEvent p_event) {
|
|||||||
if (gui.mouse_over)
|
if (gui.mouse_over)
|
||||||
gui.mouse_over->notification(Control::NOTIFICATION_MOUSE_EXIT);
|
gui.mouse_over->notification(Control::NOTIFICATION_MOUSE_EXIT);
|
||||||
|
|
||||||
|
_gui_cancel_tooltip();
|
||||||
|
|
||||||
if (over)
|
if (over)
|
||||||
over->notification(Control::NOTIFICATION_MOUSE_ENTER);
|
over->notification(Control::NOTIFICATION_MOUSE_ENTER);
|
||||||
|
|
||||||
@@ -1826,8 +1828,6 @@ void Viewport::_gui_input_event(InputEvent p_event) {
|
|||||||
|
|
||||||
gui.mouse_over=over;
|
gui.mouse_over=over;
|
||||||
|
|
||||||
_gui_cancel_tooltip();
|
|
||||||
|
|
||||||
if (gui.drag_preview) {
|
if (gui.drag_preview) {
|
||||||
gui.drag_preview->set_pos(mpos);
|
gui.drag_preview->set_pos(mpos);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user