godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.17k stars 21.2k forks source link

Tooltips do not close itself when hovered to nearby elements that is the same element as before. #95318

Open hydescarf opened 3 months ago

hydescarf commented 3 months ago

Tested versions

System information

Windows 10.0.22631 (Windows 11) - GLES3 (Compatibility) - NVIDIA GeForce GTX 1050 (NVIDIA; 31.0.15.3734) - 12th Gen Intel(R) Core(TM) i5-12400 (12 Threads)

Issue description

When cursor is hovered to an element that calls out tooltips, the tooltips appear normally. However, when the cursor is then move on to nearby element that has the same message (e.g. from top visibility button to visibility button below), the tooltips do not disappear, stay at the same position as before, and do not appear in the new position.

They will function normally if the hover is then move outside of the button to:

  1. Empty space, or
  2. Other different button/elements

Other Information:

https://github.com/user-attachments/assets/5e0ab15a-88d2-4960-b94a-183896925b76

Note that the tooltips disappear once during hovering on the scripts, probably because it touched the tooltips instead of the button. The 4 dark-blue scripts are the same script, while the 2 gray scripts at the bottom are different from the dark-blue script.

Steps to reproduce

  1. Hover to an icon.
  2. Hover to other icon below or above that is the same as the icon before. Tooltips do not function properly here.
  3. Hover to other different icon nearby or empty space. Tooltips function properly here.

Minimal reproduction project (MRP)

n/a

Torguen commented 3 months ago

They could be related?

https://github.com/godotengine/godot/issues/95056