You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The interface doesn't work properly. The minimum value for the slider works, but not the maximum. The slider goes all the way up to 100 (the default behavior, I believe), not to 0 as I specified.
I might suggest a refactor which internally makes all sliders go from 0 to 1, then implements a remapping function which takes those values and remaps them to the user-specified range. This would solve the issue I mentioned above, but also handle situations where the user provided "min" is greater than the "max". Though not technically correct in a mathematical sense, a user might want bigger values to be on the left side of the slider, and the library might as well support that.
The text was updated successfully, but these errors were encountered:
If I use a params object like this:
The interface doesn't work properly. The minimum value for the slider works, but not the maximum. The slider goes all the way up to 100 (the default behavior, I believe), not to 0 as I specified.
I might suggest a refactor which internally makes all sliders go from 0 to 1, then implements a remapping function which takes those values and remaps them to the user-specified range. This would solve the issue I mentioned above, but also handle situations where the user provided "min" is greater than the "max". Though not technically correct in a mathematical sense, a user might want bigger values to be on the left side of the slider, and the library might as well support that.
The text was updated successfully, but these errors were encountered: