-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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: vertical and horizontal SliderInt broken for inverted min/max ranges. Patch supplied #3449
Comments
Duplicate of #3432. |
sorry for the duplicate ticket. I didn't realize this was already reported. |
The following patch seems to have fixed the problem for me, without breaking anything.
|
Hello, we saw your message in the other thread so will close this one again. I am tempted to merge your suggested change as a step forward, but Rokas established that its not enough in particular for large values (that wasn’t published in the thread but we have tests for it), so we’ll need a more complex fix eventually (Rokas made one a while ago pending my review, but its a wider change so i am not super confident about it yet). |
Further examination here and it looks like we came up with a much simpler solution, closer to yours:
Should merge soon (waiting for Rokas feedback right now). |
Version/Branch of Dear ImGui:
Version: docking
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_allegro5.cpp
Compiler: gcc
Operating System: Ubuntu linux 20.04
My Issue/Question:
The SliderInt appears broken both in vertical and horizontal directions when the min/max values are inverted.
The slider can't reach the top/right edge.
Inverted min/max ranges are supported for floating point, so I assume this is a bug.
See the example test below.
Thank you for ImGui.
Cheers.
The text was updated successfully, but these errors were encountered: