-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
When you click on the menu, it will automatically click on the menu item #8233
Comments
Thanks for your report. // We use ImGuiSelectableFlags_NoSetKeyOwner to allow down on one menu item, move, up on another.
const ImGuiSelectableFlags selectable_flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_NoSetKeyOwner | ImGuiSelectableFlags_SetNavIdOnHover; The reason is that we explicitly want a single mouse down to be able to browse child menus (some people use menus this way). Are you directly impacted by this? |
Thank you for your answer. Yes, I did solve this problem after commenting out |
Hello @ocornut Excuse me, is there a way to prevent the menu from using the ImGuiSelectableFlags_NoSetKeyOwner flag? Without polluting the Dear ImGui file. |
Not yet but I will investigate the issue.
Out of clarity, can you clarify in which way it is impacting you in real conditions? As i imagine your os window is not as small in reality.
|
Version/Branch of Dear ImGui:
Version 1.91.6 master
Back-ends:
imgui_impl_dx11.cpp + imgui_impl_win32.cpp
Compiler, OS:
win11+vs2022
Full config/build information:
Details:
If the mouse is over a sub-item when the menu pops up, it will automatically click
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
ImGui::ShowDemoWindow();
The text was updated successfully, but these errors were encountered: