Skip to content

Commit

Permalink
Merge pull request #31 from Radagaisus/master
Browse files Browse the repository at this point in the history
Fix issue #30
  • Loading branch information
rauchg committed Sep 6, 2012
2 parents 2c4789c + ace6299 commit 4e8fc3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions antiscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4e8fc3b

Please sign in to comment.