-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
uiSlider bug: Maximum value not reached when Minimum value negative #650
Comments
I think ctrlr considers value 0 as a positive value, with negative value it maps -99 to -1 for neg and 0 to 98 for positive. EDIT: it's because of the mapping of the different values is not properly rounded. It makes no sens :) I'll take a look at it, it's in my to-do list for CtrlrX Thanks for reporting Damien |
I fixed the problem for the wrong values mapped on the slider : SEE : damiensellier#24 (comment)
|
NOTE : Source/UIComponents/CtrlrComponents/Sliders/CtrlrImageSlider.cpp#L173 FIX :
|
Thanks for the suggested fixes. |
When I create a uiSlider (rotary, linear bar, inc/dec button) and set Minimum value to a negative value (for example -99) and the maximum value to a positive value (for example 99) the maximum can not the be reached by moving the slider/knob/incdec.
It will only go from -99 to +98.
I am running Ctrlr 5.7.1, built myself from GIT sources, on Linux Fedora 40. Also tried pre-built recent Ctrlr versions on Windows, same issue.
Older "stable" version 5.3.201 on Windows does not have this issue. (Ctrlr Version 5.3.201 has become unusable on my Linux Fedora (mouseclicks not responding) but that's a totally different issue, not releated to the bug I am reporting here)
There is a workaround for this issue: Setting the Maximum value to 99.0001 or 99.1 solves the problem.
The problem also does not arise when Minimum value=0. Only when Minimum value is a negative number.
The text was updated successfully, but these errors were encountered: