Closed astralarya closed 4 months ago
Hello! Apologies for the delayed reply, and thank you 🙏 for bringing this to our attention. I'm on it and will investigate the issue immediately.
Hi @astralarya,
Thanks for bringing this to my attention. Despite testing on Chrome, Firefox, and Safari with the same Node.js version, the issue couldn't be replicated on my end. To dive deeper and find a solution, could you please provide the following details?
Your further insights will be crucial for me to identify and address the problem effectively. I appreciate your cooperation and patience.
Thank you!
Hey @SMAKSS It's really looks like it might show 'Still' at start and only down 'Down' later Here's my: codesanbox I hope it will work enough to show the bug.
In general in my project and sandbox it's Node 20+ and Next.Js 14+ with appDir
Thanks to @astralarya and @KubaZachacz for your support and contributions! I've deployed a fix. Please update to the latest version and check if it resolves the issue.
Looking forward to your feedback!
Brief Description
The scroll direction hook always returns down, even when scrolling up.
Environment
@smakss/react-scroll-direction
version: 4.04node.js
version: 20.8.0yarn
version: 1.22.19Code Snippet
Steps to Reproduce
Scroll up and down
Expected Behavior
Scrolling up returns up.
Actual Behavior
Events always return direction as down.