Open amaau opened 7 years ago
function _clickVerticalTrackHandler(e) { var offset = e.offsetY - this._naturalThumbSizeY * .5, thumbPositionPercentage = offset * 100 / this._scrollbarVerticalElement.clientHeight; this._viewElement.scrollTop = thumbPositionPercentage * this._viewElement.scrollHeight / 100; > this._prevPageY = this._thumbSizeY - e.offsetY + offset; > this._startDrag(e) }
Also was just gonna suggest this. Tho, with this line instead (in addition to this._startDrag(e)): this._prevPageY = this._naturalThumbSizeY * .5;
this._startDrag(e)
this._prevPageY = this._naturalThumbSizeY * .5;