Fix tooltip flickering in some cases
This commit is contained in:
parent
fdeed6ea06
commit
c30d161562
1 changed files with 1 additions and 1 deletions
|
@ -1714,7 +1714,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
|||
if (gui.tooltip_popup) {
|
||||
if (gui.tooltip_control) {
|
||||
String tooltip = _gui_get_tooltip(over, gui.tooltip_control->get_global_transform().xform_inv(mpos));
|
||||
|
||||
tooltip = tooltip.strip_edges();
|
||||
if (tooltip.length() == 0) {
|
||||
_gui_cancel_tooltip();
|
||||
} else if (gui.tooltip_label) {
|
||||
|
|
Loading…
Reference in a new issue