Skip to content

Commit

Permalink
Added check for cases where body doesn't take up 100% height
Browse files Browse the repository at this point in the history
  • Loading branch information
wolthers committed Sep 20, 2017
1 parent 9059302 commit 47227ef
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 47227ef

Please sign in to comment.