Fixing jumpiness for large scrolls

https://github.com/noraesae/perfect-scrollbar/issues/16
This commit is contained in:
itsdrewmiller 2013-06-12 12:57:43 -03:00
parent 2f6432d263
commit 351631cfa7

View File

@ -148,8 +148,8 @@
$(document).bind('mousemove.perfect-scroll', function (e) {
if ($scrollbarX.hasClass('in-scrolling')) {
moveBarX(currentLeft, e.pageX - currentPageX);
updateContentScrollLeft();
moveBarX(currentLeft, e.pageX - currentPageX);
e.stopPropagation();
e.preventDefault();
}
@ -176,8 +176,8 @@
$(document).bind('mousemove.perfect-scroll', function (e) {
if ($scrollbarY.hasClass('in-scrolling')) {
moveBarY(currentTop, e.pageY - currentPageY);
updateContentScrollTop();
moveBarY(currentTop, e.pageY - currentPageY);
e.stopPropagation();
e.preventDefault();
}