You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
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 :)
The text was updated successfully, but these errors were encountered: