Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for watching elements other than window #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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