You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey I fixed the above message with the latest code that worked for me. Downside of course is it doesn't work anymore in horizontal orientation with that there.
On touch device the "thumb" moves up-down per the touch on the left-right line, as opposed to up-down track, as it should (I hope this made sense).
Fixed it in my own version, will have to see if I have time for PR.
Fix pretty much:
where it says this from around line 176 in src/js/rangetouch.js:
// Determine left percentage
percent = ((100 / clientRect.width) * (touch.clientX - clientRect.left));
put this after it:
// Determine top percentage
percent = ((100 / clientRect.height) * ((clientRect.height-touch.clientY) -(clientRect.top)));percent = 100-((100 / (clientRect.height)) * (touch.clientY-clientRect.top))percent = 100 - 100 / clientRect.height * (touch.clientY - clientRect.top);
of course you would need some way (maybe conf flag) to decide which value to use
you'll maybe want to set also
window.rangetouch.set("thumbWidth", 0);
The text was updated successfully, but these errors were encountered: