Skip to content

Conversation

@j0xhn
Copy link

@j0xhn j0xhn commented Dec 15, 2016

So, I loved how small this code is, but needed just a little bit more functionality of detecting other elements that are off to the SIDE of the screen, not just below the fold. Also allows to watch scrolling of a parent or other element (incase images are nested) incase the images are in a modal or side-drawer (that was my use case) and you've frozen the body to not allow any scrolling. This will allow for that. Didn't know if you guys have purposely left it out, but I thought I'd share with you incase you wanted to add it to your code. Doesn't add much complexity, but does increase usability :)

John D. Storey added 2 commits December 15, 2016 12:59
Adds support for items located off the side of the screen to the right, as well as watching for a parent to scroll incase they've locked the background in the use case of a modal or side-drawer element.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant