Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips break hover events for underlying controls #73926

Open
Tio-Henry opened this issue Feb 25, 2023 · 9 comments · May be fixed by #85583 or #88392
Open

Tooltips break hover events for underlying controls #73926

Tio-Henry opened this issue Feb 25, 2023 · 9 comments · May be fixed by #85583 or #88392

Comments

@Tio-Henry
Copy link

Tio-Henry commented Feb 25, 2023

Godot version

4.0.rc5

System information

Win10, AMD Radeon 6570, 15.201.1151.1008, GLES3

Issue description

2023-02-25.12-38-36.mp4

Steps to reproduce

2023-02-25.12-38-36.mp4

Minimal reproduction project

N/A

@YuriSizov
Copy link
Contributor

This may have been reported before, but indeed. Tooltips break hover events on controls (and this is not the only case of that).

@YuriSizov YuriSizov added this to the 4.x milestone Feb 25, 2023
@YuriSizov YuriSizov changed the title Toolbar > Debug | bug mouse overlay Tooltips break hover events for underlying controls Feb 26, 2023
@YuriSizov
Copy link
Contributor

Not strictly related to the editor, but adding a label anyway to make it easier to find.

@FlankeR-46
Copy link

FlankeR-46 commented Mar 1, 2023

Good day. I won't create another issue because the situations are very similar.
Situation:
In the Project settings, we set the "WINDOWED" mode (mark 1).
If the Fullscreen mode is set via the Project settings, no such problem has been noticed.
We hover the mouse over any component that shows a tooltip (mark 2).
When launching the program through the code, we set the "MAXIMIZED" mode or any "FULLSCREEN" mode (mark 3).
We get a hanging tooltip on our screen, which is removed via ALT+TAB (mark 4).
Sometimes it's unpleasant. There was no such problem in v. 3.5. Checked it out.
image

@Sauermann
Copy link
Contributor

Bisecting this issue shows that it got introduced in #72104

@akien-mga
Copy link
Member

CC @bruvzg

@golddotasksquestions
Copy link

I can confirm the issue still being present in both Godot 4.0.3 stable and 4.1 Beta3.

@duianto
Copy link

duianto commented Jul 3, 2023

Godot v4.1.rc2 - Windows 10.0.19045 - Vulkan (Compatibility) - GeForce GTX 550 Ti () - Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz (4 Threads)

On the Anchor presets popup.
Mouse clicking:

  • Outside a tooltip.
    • Only closes the tooltip.
  • On a tooltip
    • Closes the tooltip
    • and sends the mouse click to the button under the mouse pointer.
godot_4.1.rc2_mouse_click_works_on_tooltips_but_not_outside.mp4

If a button's tooltip is visible when another button is clicked.
Then, the first click on the new button only hides the tooltip.

A second click is required, but if it's too slow and the new button's tooltip appeared.
Then, the second click hid the new button's tooltip.

A third click is required to click the button.

It's likely that the second click is slow because it was unexpected that the first click didn't click the button.

godot_4.1.rc2_slow_clicks_blocked_by_tooltip.mp4

Expected

The buttons shouldn't be blocked by a tooltip.

And the tooltips should probably update as soon as the mouse is moved to a new button.

Alternative to a floating tooltip

Instead of a floating tooltip that hides the buttons behind it.

Xy9F3GOlnh

Maybe the anchor presets popup could have an empty text row,
that shows the current tooltip text when the mouse is over a button.

If implemented, then it also could be added to the popup:
Sizing settings for children of a Container node.

Godot_v4 1-rc2_win64_VzrawJ5muv

The Anchor presets button Set to Current Ratio
and the Sizing settings for children popups check boxes.
Might still need the floating tooltips, since the text is wider than the popup widths.

qMS5EziXm0

8avsarXvmO

@Tio-Henry
Copy link
Author

The problem remains version 4.1, but a little different

2023-07-06.14-32-06.mp4

@JekSun97
Copy link

The problem still remained in 4.3 dev 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment