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

Fix some flickering tooltips #98479

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

timothyqiu
Copy link
Member

@timothyqiu timothyqiu commented Oct 24, 2024

Fixes #98449

On mouse movement, Viewport cancels current tooltip if the control's tooltip text is empty. On Windows, it appears that a mouse movement event is automatically generated when a tooltip is shown, so a button's tooltip flickers if it's only showing shortcut information without actual tooltip_text.

The empty string check was introduced in #5803 to address another tooltip flickering issue 🤣 It seems to be a redundant check, testing for text change should be sufficient.

@timothyqiu timothyqiu added this to the 4.4 milestone Oct 24, 2024
@timothyqiu timothyqiu requested a review from a team as a code owner October 24, 2024 01:14
@Repiteo Repiteo merged commit b9e8e54 into godotengine:master Oct 24, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 24, 2024

Thanks!

@timothyqiu timothyqiu deleted the empty-tooltip branch October 24, 2024 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lower toolbar tooltips flickering
3 participants