add - drag thumb from anywhere on the track
amaau opened this issue · comments
Misha Magarik commented
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)
}
takaturre commented
Also was just gonna suggest this. Tho, with this line instead (in addition to this._startDrag(e)
):
this._prevPageY = this._naturalThumbSizeY * .5;