Skip to content

Commit

Permalink
correct element visibility logic [fixes #352]
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmakes committed Jun 23, 2017
1 parent 37d9a31 commit 464a594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scrollreveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,8 @@

return top < viewBottom &&
bottom > viewTop &&
left > viewLeft &&
right < viewRight
left < viewRight &&
right > viewLeft
}

function isPositionFixed () {
Expand Down

0 comments on commit 464a594

Please sign in to comment.