Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/wow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ class @WOW
offset = box.getAttribute('data-wow-offset') or @config.offset
viewTop = window.pageYOffset
viewBottom = viewTop + Math.min(@element.clientHeight, @util().innerHeight()) - offset
top = @offsetTop(box)
bottom = top + box.clientHeight
top = box.getBoundingClientRect().top
bottom = box.getBoundingClientRect().bottom

top <= viewBottom and bottom >= viewTop

Expand Down