-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
[BUG] Click goes "through" menu elements #58
Comments
Thanks for reporting that, but this issue seems to be more advanced and it can take more time to investigate source of this behavior and whole blocking system. Already added it to TODO. |
As always, thanks for the quick answer and good luck |
In order to fix this issue, you’ll need to disable input with your inputsystem interfaces when the menu is open. |
Oh okay, thanks for the reply :) |
Small correction. The issue that I explained how to fix is different, my mistake I am on my phone and it decided not to show the gif. However for your issue, I’m pretty sure zxvnme is planning on looking into control priority at some point |
It's rather quite simple. This is how I do it:
The above posted code is obviously for an OOP-style menu. You should call this code in your groupbox/window element mouse click handler. There should be only one m_focused_element object per application instance. Based on the returned state, you can also figure out which window has consumed the input. |
you can make a pull request btw |
Describe the bug
When clicking on a listbox, combobox, multicombobox, the thing under the list appearing get triggered too, here is a gif to understand me better.
https://i.imgur.com/9ECDCqa.gifv
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Only the opened element should get triggered.
Screenshots
See the gif ^
The text was updated successfully, but these errors were encountered: