We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now react-scroll-direction can track only window scroll. It would be great if it could track scroll for any custom scrollable element.
window
Maybe make it accept a ref?
const ref = useRef(); const { scrollDir } = useDetectScroll({ ref });
The text was updated successfully, but these errors were encountered:
Hi @EvgenyOrekhov, thanks for your feature suggestion! I’ll aim to include it in the upcoming major release.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Problem Description
Right now react-scroll-direction can track only
window
scroll.It would be great if it could track scroll for any custom scrollable element.
Suggested Solution
Maybe make it accept a ref?
The text was updated successfully, but these errors were encountered: