Skip to content

Commit

Permalink
fix some edge-cases where the documentElement height is 100% of the
Browse files Browse the repository at this point in the history
content height
  • Loading branch information
attilaolah committed Jul 29, 2014
1 parent 11970bb commit 0b5a853
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dist/wow.js

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

2 changes: 1 addition & 1 deletion dist/wow.min.js

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

2 changes: 1 addition & 1 deletion src/wow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class @WOW
isVisible: (box) ->
offset = box.getAttribute('data-wow-offset') or @config.offset
viewTop = window.pageYOffset
viewBottom = viewTop + @element.clientHeight - offset
viewBottom = viewTop + Math.min(@element.clientHeight, innerHeight) - offset
top = @offsetTop(box)
bottom = top + box.clientHeight

Expand Down

0 comments on commit 0b5a853

Please sign in to comment.