Merge pull request #98479 from timothyqiu/empty-tooltip

Fix some flickering tooltips
This commit is contained in:
Thaddeus Crews 2024-10-24 13:22:49 -05:00
commit b9e8e54521
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84

View File

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