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

Support other elements being source for scroll events #34

Closed
WickyNilliams opened this issue Nov 19, 2015 · 2 comments
Closed

Support other elements being source for scroll events #34

WickyNilliams opened this issue Nov 19, 2015 · 2 comments

Comments

@WickyNilliams
Copy link

Sometimes you want to get scroll events from sources other than window e.g. an element with overflow.

Not sure how this would actually work in the react world. In the original headroom you just pass a ref to the element you want to listen to scroll events on when constructing the instance. Not as easy with react where you'd have to wait for the scroll source component to be mounted first.

Worth consideration anyway :)

@KyleAMathews
Copy link
Owner

@borisnadion has an almost merged PR for this actually @ #10

@KyleAMathews
Copy link
Owner

Merged #10

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

2 participants