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

Allow to watch scroll on a div rather than the whole window #19

Open
AlexStef opened this issue Sep 14, 2018 · 0 comments
Open

Allow to watch scroll on a div rather than the whole window #19

AlexStef opened this issue Sep 14, 2018 · 0 comments

Comments

@AlexStef
Copy link

Hey,
Thanks for the work on this project !

I noticed we could make the lib less global by watching scroll event on the element rather than the window, allowing a scroll inside a container, and not the whole page.

Maybe we could add a parameter to switch between window and the element ?

I'm working on a PR for this if needed

regards

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

No branches or pull requests

1 participant