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.67k stars 660 forks source link

Event when user tries to go beyond padding limits #1250

Closed horatiua closed 11 months ago

horatiua commented 1 year ago

Hi,

I have a slider with padding on the left side. When the user tries to go beyond that padding (tries to slide or tap), I want to show an alert with some message. Is there a way to figure out when this happens?

Thank you!

leongersen commented 1 year ago

If you want the slider to respond to events in the padding area, you can have a looking at this example: https://refreshless.com/nouislider/examples/#section-soft-limits

github-actions[bot] commented 10 months 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.