seiyria / bootstrap-slider

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

Slider not selecting some values #945

Open praveenk-raveendran opened 4 years ago

praveenk-raveendran commented 4 years ago

Issues

The slider while dragging not selecting some values like 17, 75, etc.

I have created a JSFiddle for this here: https://jsfiddle.net/9633599302/o9t0wrbu/

seiyria commented 4 years ago

It looks like this is due to where the tick is placed, causing a hard to click zone. It can be manually selected by using tab to focus on the element and using the arrow keys. I suspect this will be an issue in most situations with tick_positions set.

praveenk-raveendran commented 4 years ago

What about 75, there are no tick positions around that. While investigating about this, I have changed a line of code in the _mousemove function as follows:

var percentage = Math.floor(this._getPercentage(ev));

After this, all values were showing while dragging, but not remain as selected.

rovolution commented 4 years ago

we would definitely appreciate a bug fix pr @praveenk-raveendran!