Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Commit

Permalink
Fix wierd scroll distance bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nathggns committed Oct 20, 2011
1 parent 7ac4643 commit a1fa3c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.markdown
@@ -1,2 +1,2 @@
# Version 1.2
- Add keyboard support **(Up/Down/Left/Right/PageDwn/PageUp)**
# Version 1.2.1
- Fix wierd scroll distance bug
2 changes: 1 addition & 1 deletion build/jquery.scrollbars.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions src/jquery.scrollbars.js
Expand Up @@ -584,10 +584,6 @@
top: distance
});

if (distance == max) {
distance = distance - 1;
}

trackDistance = dragCon.height() - drag.height();
notVisible = contentWrap.height() - rootWrap.height();
distanceRatio = notVisible / trackDistance;
Expand Down

0 comments on commit a1fa3c6

Please sign in to comment.