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
I have an application where react router loads a wrapper component, which in turn contains a component with react-scroll elements and links. This appears to work perfectly, however when I switch routes and then come back suddenly smooth scrolling no longer works when clicking on the links despite the "begin" and "end" events both being fired, and seemingly the correct parameters being passed around when I step through everything up to the point of "RequestAnimationFrameHelper".
If I turn smooth scroll off, the scroll bar is moved to the correct place(obviously without the animation).
I have tried in several browsers and it doesn't seem to be a browser specific issue - has anyone run into anything similar?
The text was updated successfully, but these errors were encountered:
I have not tried react-scroll with react-router ( or any type of routing ). Might be that we remove some listeners in componentWillUnmount. I will take a look at it and hopefully tonight.
I have an application where react router loads a wrapper component, which in turn contains a component with react-scroll elements and links. This appears to work perfectly, however when I switch routes and then come back suddenly smooth scrolling no longer works when clicking on the links despite the "begin" and "end" events both being fired, and seemingly the correct parameters being passed around when I step through everything up to the point of "RequestAnimationFrameHelper".
If I turn smooth scroll off, the scroll bar is moved to the correct place(obviously without the animation).
I have tried in several browsers and it doesn't seem to be a browser specific issue - has anyone run into anything similar?
The text was updated successfully, but these errors were encountered: