Skip to content

Commit

Permalink
Release v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogasparin committed Feb 26, 2015
1 parent aad4608 commit 2282586
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "optiscroll",
"version": "1.0.5",
"version": "1.0.6",
"homepage": "https://github.com/wilsonfletcher/optiScroll",
"authors": [
"Alberto Gasparin <albertogasparin@gmail.com>"
Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.optiscroll.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*!
* Optiscroll.js v1.0.5
* Optiscroll.js v1.0.6
* https://github.com/wilsonfletcher/Optiscroll/
* by Alberto Gasparin
*
* @copyright 2014 Wilson Fletcher
* @copyright 2015 Wilson Fletcher
* @license Released under MIT LICENSE
*/

Expand Down Expand Up @@ -619,7 +619,7 @@ var Scrollbar = function (which, instance) {
sizeDiff = scrollS - viewS,
positionRatio, percent;

if(sizeRatio === 1 || scrollS === 0) { // no scrollbars needed
if(sizeRatio >= 1 || !scrollS) { // no scrollbars needed
return { position: 0, size: 1, percent: 0 };
}

Expand Down
Loading

0 comments on commit 2282586

Please sign in to comment.