-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
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
When scrolling with offset, page jumps to zero offset when animation is complete #30
Comments
I believe this was the result of default hash behavior conflicting with the component animation. I used the disableHistory prop and it solved my problem of not jumping to 0 offset. If you use history and update the hashes, it still jumps however. |
I'm experiencing the same issue. |
The problem is on: updateHistory function and the intended behavior of In order of prevent jump and still use history the user must handle back button by itself. We can follow two possible paths:
Another idea?... What will be desirable? |
It solved on new release, Please update your code and tell me is ok. Thanks for report the issue. |
Seems to be working great. Thanks for the update! |
Thank you! |
I'm using Scrollchor with no child anchor and have the offset set to -170. After the animation completes, when the hash URL updates, the page scrolls to 0 offset for the element. Seems like maybe the event doesn't have preventDefault set.
The text was updated successfully, but these errors were encountered: