bootstrap-slider icon indicating copy to clipboard operation
bootstrap-slider copied to clipboard

Slider not selecting some values

Open praveenk-raveendran opened this issue 5 years ago • 3 comments
trafficstars

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/

praveenk-raveendran avatar Jun 18 '20 14:06 praveenk-raveendran

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.

seiyria avatar Jun 18 '20 14:06 seiyria

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.

praveenk-raveendran avatar Jun 18 '20 14:06 praveenk-raveendran

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

rovolution avatar Jun 19 '20 00:06 rovolution