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
Great hook you've put together, been using it for a while and it works like a treat!
I've discovered what I think is a bug. On the project I'm working on right now I have a navigation that jumps to different sections on the homepage. I've noticed that if I jump to a section (via scrollTop) and then scroll upwards, when onEnter triggers scrollDirection.vertical is up, when it should be down.
If I test with onChange I see up on the first threshold and the following ones will be down as expected.
I'm just getting ready to launch this project so I'll revisit this thread with a test case as soon as I have the time if you can't reproduce on your own.
Thanks again!
The text was updated successfully, but these errors were encountered:
Great hook you've put together, been using it for a while and it works like a treat!
I've discovered what I think is a bug. On the project I'm working on right now I have a navigation that jumps to different sections on the homepage. I've noticed that if I jump to a section (via
scrollTop
) and then scroll upwards, whenonEnter
triggersscrollDirection.vertical
isup
, when it should bedown
.If I test with
onChange
I seeup
on the first threshold and the following ones will bedown
as expected.I'm just getting ready to launch this project so I'll revisit this thread with a test case as soon as I have the time if you can't reproduce on your own.
Thanks again!
The text was updated successfully, but these errors were encountered: