-
-
Notifications
You must be signed in to change notification settings - Fork 497
'enforceStep' option is ignored #287
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
Comments
The enforceStep option will not enforce snapping to steps if it is set to On Thu, Mar 3, 2016 at 11:19 AM, Evgeny V [email protected] wrote:
|
Just to clarify. When you are saying "externally" do you mean by dragging the slider with the mouse? or by setting the value in the code somewhere? |
Setting the value in the code, it's expected that you would populate all of On Thu, Mar 3, 2016 at 11:31 AM, Evgeny V [email protected] wrote:
|
Ok. I see. So it is not currently possible to set the slider in between ticks by dragging it with the mouse. Am I correct? What I want to achieve is to display a slider with a timescale from 0:00 to 24:00 hours with ticks every hour, but be able to drag the slider in between the ticks so the users could select, for instance, 13h23min. I think it would be nice to have at least two types of steps: "Ticks step" (for displaying on the UI) and "Slider step" (for restricting/rounding the slider value). Or have an option where the slider value is not rounded to thicks. |
I think that there is a on-going PR that address your need: #264. |
Great!. Thanks. It looks very promising. |
It seems that
enforceStep
option is ignored.I want to display ticks from 0 to 24 with step 1, but be able to drag the slider to any value between 0 and 24 that is not rounded to the step.
I expected that if I set
enforceStep
to false, the slider handle can be positioned in between ticks/steps. However, no matter whether it is set to true or false, the handle position is always snapped to the ticks.Is it intended usage of the
enforceStep
option? if not, is it possible to achieve the described above behaviour?Thank you.
The text was updated successfully, but these errors were encountered: