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 submenus erroneously closing on some occasions #90639

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

YeldhamDev
Copy link
Member

A submenu from a PopupMenu is programmed to auto-close if the mouse leaves its safe area (the area of the hovered item in the parent menu) after 0.3 seconds. However, if the mouse comes back to the safe area, the submenu will still auto-close after its timer runs out.

This PR makes that the auto-close timer is stopped if the mouse is again inside the safe area.

@YeldhamDev YeldhamDev added this to the 4.3 milestone Apr 13, 2024
@YeldhamDev YeldhamDev requested a review from a team as a code owner April 13, 2024 18:46
@akien-mga akien-mga merged commit fad6897 into godotengine:master Apr 17, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@YeldhamDev YeldhamDev deleted the stay_open_please branch April 17, 2024 14:02
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.

3 participants