Answer the question
In order to leave comments, you need to log in
Step adjustment for jQuery slider?
jQuery slider when setting min and max values on first attempt to slide, rounds max value.
For example, for the values min 10 and max 100 with a step of 10 everything will be even, since 100 is divisible by 10 without a remainder.
But if the values of the limits change, for example min 10 max 101, then the plugin will round the maximum value to 100, which is what I need to avoid.
What is the formula for dynamic pitch adjustment given min and max? The desired step is also known.
--
Thank you.
Answer the question
In order to leave comments, you need to log in
Hi, look at my slider, it can reach the end in such situations: jsfiddle.net/IonDen/qbywqkgL
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question