Skip to content

Commit

Permalink
Merge pull request #14 from NZX-DeSiGN/master
Browse files Browse the repository at this point in the history
Fix hiding scrollbar when content is smaller than container
  • Loading branch information
buzinas authored Dec 13, 2016
2 parents 07aa0ab + 4c3bfb8 commit e658f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion simple-scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

raf(function() {
// Hide scrollbar if no scrolling is possible
if(_this.scrollRatio === 1) {
if(_this.scrollRatio >= 1) {
_this.bar.classList.add('ss-hidden')
} else {
_this.bar.classList.remove('ss-hidden')
Expand Down
5 changes: 1 addition & 4 deletions simple-scrollbar.min.js

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

0 comments on commit e658f40

Please sign in to comment.