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 selecting popup menu items on mouse release (reverted) #86952

Conversation

ryevdokimov
Copy link
Contributor

I'm not sure this ever worked, since I don't think InputEventMouseButton registers in windows on mouse up and messing with the input code is probably a bad idea unless there is a very good reason.

This PR should fix it though. Regular mouse click behavior is maintained (keep menu open).

image
image

@ryevdokimov ryevdokimov requested a review from a team as a code owner January 8, 2024 05:14
@ryevdokimov ryevdokimov force-pushed the fix-selecting-popup-menu-items-on-mouse-release branch 2 times, most recently from a335fba to 077a756 Compare January 8, 2024 05:20
@ryevdokimov ryevdokimov force-pushed the fix-selecting-popup-menu-items-on-mouse-release branch from 077a756 to a1cee91 Compare January 8, 2024 05:33
@AThousandShips AThousandShips added this to the 4.3 milestone Jan 8, 2024
@ryevdokimov
Copy link
Contributor Author

Something messed up with selecting checkboxes, looking into it.

@ryevdokimov ryevdokimov force-pushed the fix-selecting-popup-menu-items-on-mouse-release branch from a1cee91 to f4ba44c Compare January 8, 2024 14:02
@ryevdokimov
Copy link
Contributor Author

ryevdokimov commented Jan 8, 2024

Ok, fixed and works with checkboxes now.

image

@ryevdokimov ryevdokimov force-pushed the fix-selecting-popup-menu-items-on-mouse-release branch 6 times, most recently from 9411c07 to ed14d3e Compare January 11, 2024 18:31
scene/gui/popup_menu.cpp Outdated Show resolved Hide resolved
@ryevdokimov ryevdokimov force-pushed the fix-selecting-popup-menu-items-on-mouse-release branch from ed14d3e to 576d281 Compare January 14, 2024 17:13
@ryevdokimov ryevdokimov requested a review from KoBeWi January 14, 2024 17:13
@KoBeWi
Copy link
Member

KoBeWi commented Jan 14, 2024

Bug: mouse wheel will select options, making it impossible to scroll long lists.

@ryevdokimov ryevdokimov force-pushed the fix-selecting-popup-menu-items-on-mouse-release branch 2 times, most recently from 96c5eb9 to 2892938 Compare January 14, 2024 22:03
@ryevdokimov ryevdokimov force-pushed the fix-selecting-popup-menu-items-on-mouse-release branch from 2892938 to 06c2cda Compare January 14, 2024 22:46
@ryevdokimov
Copy link
Contributor Author

Good catch, it's fixed now.

@akien-mga akien-mga merged commit 92951b0 into godotengine:master Feb 14, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

4 participants