Open suhakaralar opened 5 years ago
Could you please ,make a pen or fiddle with your finding? I am unsure of the reproduction steps for the issue you are addressing.
https://jsfiddle.net/suhakaralar/zfco9b26/1/ Hi.Scroll to the right with arrow keys. I only changed the scrollbar handle width to 150px, and scroll type "progress" to "scroll"
Here is the screenshot.
update the below code with the your code. /**
@param {int} index */ function calculateCurrentPosition() {
var position = 0;
var index = Instance.relative(Instance.current());
var handleSize = $handle.width();
if (index === 0) {
position = 0;
}
else if (index < count - visible) {
position = (ratio * index);
}
else if (index == count - visible) {
position = position = sbSize - 121.333;
}
else {
position = sbSize - progressSize;
}
return position;
}
Note: 121.333 is handleSize
Hi, great plugin thank you. But when you use this plugin with navigation arrows, and you keep scrolling to right with arrows, scrollbar handle overflows to right up to it's length.