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
Hi,
for the alwaysShow option : it still gives me two bugs.
if set to true : the handle gets calculated wrongly : a DIV with hight 400px and with 10px content gives a ratio of 400 / 10 = 40. this generates a handle of 400 * 40. OK, you don't see it ... but I prefer not to have this kind of hidden items.
I can still scroll the content of that same div ! even if there is nothing to scroll. that is because the same div gives a range of : 10 - 200 = -190. resulting in a scrollable div in safari using mousewheel.
Hi,
for the alwaysShow option : it still gives me two bugs.
if set to true : the handle gets calculated wrongly : a DIV with hight 400px and with 10px content gives a ratio of 400 / 10 = 40. this generates a handle of 400 * 40. OK, you don't see it ... but I prefer not to have this kind of hidden items.
I can still scroll the content of that same div ! even if there is nothing to scroll. that is because the same div gives a range of : 10 - 200 = -190. resulting in a scrollable div in safari using mousewheel.
I suggest the next solutions :
//handleSize = +this.scroller.scroll.getDimensions()[this.axis] * ratio;
if (ratio >= 1 && true == this.options.alwaysShow) {
handleSize = this.areaSize;
this.maxRange = 0;
} else {
handleSize = +this.scroller.scroll.getDimensions()[this.axis] * ratio;
this.maxRange = this.scrollSize - this.areaSize / 2 + this.options.margin;
}
and :
// this.slider = new Slider(this.scroller.scroll, this.scroller.handle, {mode: this.options.mode,range: [0, this.scrollSize - this.areaSize / 2 + this.options.margin]});
this.slider = new Slider(this.scroller.scroll, this.scroller.handle, {
mode: this.options.mode,
range: [0, this.maxRange]
});
keep it up,
J
The text was updated successfully, but these errors were encountered: