Skip to content

Commit

Permalink
Merge pull request #41 from wolthers/master
Browse files Browse the repository at this point in the history
Added check for cases where body doesn't take up 100% height
  • Loading branch information
lazd authored Sep 20, 2017
2 parents 9059302 + 47227ef commit 8fc5180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inobounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var el = evt.target;

// Check all parent elements for scrollability
while (el !== document.body) {
while (el !== document.body && el !== document) {
// Get some style properties
var style = window.getComputedStyle(el);

Expand Down

0 comments on commit 8fc5180

Please sign in to comment.