willmcpo / body-scroll-lock

Body scroll locking that just works with everything 😏
MIT License
4.04k stars 337 forks source link

Correct comment #135

Closed RogerPodacter closed 4 years ago

RogerPodacter commented 4 years ago

We end up in this if statement if the element is all the way scrolled, not if it's not scrolled at all. The comment on the previous condition is correct but I think this one's wrong.