Skip to content
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

[changed] Don't restore scroll position on Forward #708

Merged
merged 1 commit into from
Jan 26, 2015

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Jan 19, 2015

We can't reliably restore scroll position on Forward due to browser differences and incompatibilities.
Instead, we will only restore previous scroll position when user presses Back, and scroll to top on Forward.

Fixes #707.

@gaearon
Copy link
Contributor Author

gaearon commented Jan 19, 2015

Let's hold on with this until we have a solution for #707 (comment)

We can't reliably restore scroll position on Forward due to browser differences and incompatibilities.
Instead, we will only restore previous scroll position when user presses Back, and scroll to top on Forward.

Fixes remix-run#707.
gaearon added a commit that referenced this pull request Jan 26, 2015
[changed] Don't restore scroll position on Forward
@gaearon gaearon merged commit 28f7d58 into remix-run:master Jan 26, 2015
@gaearon
Copy link
Contributor Author

gaearon commented Jan 26, 2015

Merged it myself so it gets to the next release.
The change is trivial, fixes buggy behavior and seems to work on my project so far..

@gaearon gaearon deleted the patch-2 branch January 26, 2015 22:41
@mjackson
Copy link
Member

Woohoo! Thanks @gaearon ! 👍

@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic browser scrolling corrupts router scroll history
2 participants