Skip to content

Commit

Permalink
Merge pull request #32 from Inumedia/scrollHeightVScontainerWidth
Browse files Browse the repository at this point in the history
Scroll height vs container width fixed
  • Loading branch information
Inumedia authored Sep 20, 2016
2 parents df7f6aa + ccd08a7 commit 266ee4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/documents/lib/jquery-scrollto.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ umd: true
}

// Check to see if the scroll is necessary
if ( $container.prop('scrollHeight') === $container.width() ) {
if ( $container.prop('scrollHeight') === $container.height() ) {
delete scrollOptions.scrollTop;
}
if ( $container.prop('scrollWidth') === $container.width() ) {
Expand Down

0 comments on commit 266ee4f

Please sign in to comment.