Closed dalles closed 10 years ago
I am having the same problem,
<div>
<input id="myslider2" type="range" min="0" max="100" value="0" step="20" style="width:100%" onchange="document.getElementById('sliderValue').innerHTML = this.value;"/>
</div>
<div id="sliderValue"></div>
If I move the selector step by step, I am not able to get min (0) and max (100) printed although the selector is already at the beginning or end of slider bar. The min and max value I can get are 20 and 80.
If I very quickly move the selector, like swiping it from left to right or right to left, I may have a chance to get 0 or 100.
The code modified by @dalles are not really working, depending on what min/max/step values are used, it could be slightly better or worse.
Tested on Ripple.
Thanks for the added info... I still need to get around to looking at this bug
Using the following sample HTML
I notice a dead space at the beginning and end of the bbUI.js rendered slider. After a little digging into the code I made the following changes and it appears to now correctly handle the above min and max values.
I change the following line:
to
and also changed the line:
to
It may still require some further testing and tweaking but has solved the issue I was experiencing.