-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Restore scroll position after reload #40
Conversation
Thanks for putting effort into the PR! ❤️
That would be sweet. I noticed that sometimes I need to turn it off due to some circumstances, perhaps others will find themselves in such situations too and will welcome the option. |
@kirillplatonov Still using this fork in my app and I don't seem to have any critical issues. Can we merge it and release? |
Hey @mikker. Thank you for that PR and sorry for delay with review. It looks and works great. I will publish v1.3 with this feature shortly. |
Hi, do i need to enable this functionality or need to configure something? |
No need to enable anything. It should work out of the box in |
This PR causes an issue for me : each time I click on a link, the scroll resets to 0 before the next page is loaded. This seems to be because the click event resets scroll to 0, and then the |
Shouldn't we use |
Saves scroll position after scroll events and restores it after updates. Hat tip to @tomazzlender's implementation.
Spent way too long debugging an issue where it would reset without a scroll event. Turned out I had two windows open setting each their own scroll value. So that's sort of a thing but not sure it's something we can fix.
Closes #1