Many application interfaces have options that can be turned on or off using switches. noUiSlider is well suited for this, especially because of the wide touch support.
The update
event can be used to keep track of changes to the handle. We'll set the range to [0, 1]
, which leaves one step of 1
.