Permalink
Browse files

Merge pull request #31 from Radagaisus/master

Fix issue #30
  • Loading branch information...
2 parents 2c4789c + ace6299 commit 4e8fc3b09fe0d413383fd738c0f3483ec1b921a5 @rauchg rauchg committed Sep 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 antiscroll.js
View
@@ -322,7 +322,7 @@
Scrollbar.Horizontal.prototype.mousewheel = function (ev, delta, x, y) {
if ((x < 0 && 0 == this.pane.inner.get(0).scrollLeft) ||
- (x > 0 && (this.innerEl.scrollLeft + this.pane.el.width()
+ (x > 0 && (this.innerEl.scrollLeft + Math.ceil(this.pane.el.width())
== this.innerEl.scrollWidth))) {
ev.preventDefault();
return false;
@@ -390,7 +390,7 @@
Scrollbar.Vertical.prototype.mousewheel = function (ev, delta, x, y) {
if ((y > 0 && 0 == this.innerEl.scrollTop) ||
- (y < 0 && (this.innerEl.scrollTop + this.pane.el.height()
+ (y < 0 && (this.innerEl.scrollTop + Math.ceil(this.pane.el.height())
== this.innerEl.scrollHeight))) {
ev.preventDefault();
return false;

0 comments on commit 4e8fc3b

Please sign in to comment.