seiyria / bootstrap-slider

A slider control for Bootstrap 3 & 4.
http://seiyria.github.io/bootstrap-slider/
Other
2.99k stars 1.14k forks source link

Click track to advance value +/- 1 #857

Closed capegreg closed 6 years ago

capegreg commented 6 years ago

First off, this is a fine control that works and looks very good on my site. For my question, and this may be an enhancement request or maybe there is a solution. The motivation for this question is due to the sensitivity of the slider when the track width is very small. I am using the slider to choose days of the year 1 - 365. Basically, the day is used to perform a calculation...anyway, it is very difficult to narrow down to single digits when sliding, e.g., stopping on 17 often skips past it by 5 or more values in either direction making it frustrating to stop on the value you want. I want to allow the track to be clicked on the track both before the handle and after which would allow a single tick to advance the handle. So, if the user stops on 14 because they can't land on 17, they can just single click three times to advance to 17. I am already using the change\slide\sliderStop events to retrieve values when sliding, but this is very different. Thanks.

seiyria commented 6 years ago

For this feature, you'd be better off implementing buttons on either side to increment/decrement.

capegreg commented 6 years ago

I have no room for the buttons. I may have to swap out for a number spinner. Thanks.