-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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] SliderInt value changing unwantedly on TreeNode click spam #2041
Labels
label/id and id stack
implicit identifiers, pushid(), id stack
Comments
This is not a bug, you have an ID conflict. Using an empty ID has some rare uses but in 99% cases is not what you want to do. With your setup both the treenode and the slider share the same ID. If you want an empty label on the Slider you may use “##something”. Please read the FAQ entry about ID manipulations. |
ocornut
added a commit
that referenced
this issue
Sep 10, 2024
Also #74, #96, #480, #501, #647, #654, #719, #843, #894, #1057, #1173, #1390, #1414, #1556, #1768, #2041, #2116, #2330, #2475, #2562, #2667, #2807, #2885, #3102, #3375, #3526, #3964, #4008, #4070, #4158, #4172, #4199, #4375, #4395, #4471, #4548, #4612, #4631, #4657, #4796, #5210, #5303, #5360, #5393, #5533, #5692, #5707, #5729, #5773, #5787, #5884, #6046, #6093, #6186, #6223, #6364, #6387, #6567, #6692, #6724, #6939, #6984, #7246, #7270, #7375, #7421, #7434, #7472, #7581, #7724, #7926, #7937 and probably more.. Tagging to increase visibility!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version/Branch of Dear ImGui:
v1.62
Back-end file/Renderer/OS:
Back-ends: Standart imgui & D3D9
OS: Windows 10 - 64 Bit
Compiler: Standart Visual Studio 2017 C++
My Issue/Question:
So as first im pretty new on imgui(just my first days) this is not a question or i don't need help i just wanted to report this bug that i found while starting to explore imgui.
When you spam to open a 'TreeNode' with a 'SliderInt' under it, the slider changes the value relevant to the mouse position but you don't press the slider. How this happen? On the SliderInt arguments the text(argument0) must be "", if you write " \0" everything works like it should. I Hope i was able to help you improving the library. Keep up the good work & Have a good day!
Standalone, minimal, complete and verifiable example:
Screenshots/Video (you can drag files here)
The text was updated successfully, but these errors were encountered: