leongersen / noUiSlider

noUiSlider is a lightweight, ARIA-accessible JavaScript range slider with multi-touch and keyboard support. It is fully GPU animated: no reflows, so it is fast; even on older devices. It also fits wonderfully in responsive designs and has no dependencies.
https://refreshless.com/nouislider/
MIT License
5.64k stars 658 forks source link

Question: is it possible to setup an arbitrary range with arbitrary steps/snaps? #1192

Closed stratboy closed 2 years ago

stratboy commented 2 years ago

Hi, thank you for your code. What I mean is: say I've got non-linear values, like:

100, 150, 300, 475, 500, 630.

Say I want to build a slider which has the above steps, snapped. Is it possible?

Thank you, regards

leongersen commented 2 years ago

Yes, you can set the snap option.

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.