Stryzhevskyi / rangeSlider

Simple, small and fast vanilla JavaScript polyfill for the HTML5 `<input type="range">` slider element.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lock slider when it hit's specific number?

Fenny opened this issue · comments

commented

Hi,

I have a min 0 and max 100 but the value is on 50 and it cannot go under 50, how can I achieve this?
if (val == 50) { return false; }
Doesn't seem to work

Hi
Check this example

commented

You sir are a hero!