mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #98479 from timothyqiu/empty-tooltip
Fix some flickering tooltips
This commit is contained in:
commit
b9e8e54521
@ -1921,7 +1921,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
||||
String tooltip = _gui_get_tooltip(over, gui.tooltip_control->get_global_transform_with_canvas().affine_inverse().xform(mpos));
|
||||
tooltip = tooltip.strip_edges();
|
||||
|
||||
if (tooltip.is_empty() || tooltip != gui.tooltip_text) {
|
||||
if (tooltip != gui.tooltip_text) {
|
||||
_gui_cancel_tooltip();
|
||||
} else {
|
||||
is_tooltip_shown = true;
|
||||
|
Loading…
Reference in New Issue
Block a user