Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Gatsby websites auto scroll back to the top #6392
When a Gatsby website loads, the user can happily start scrolling. However, after some time has elapsed the page scrolls back up to the top.
Steps to reproduce
It should not scroll to the top
It scrolls to the top. This will not happen if JS is disabled.
File contents (if changed)
@humphreybc no not yet unfortunately. The fix is I believe to check in https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-react-router-scroll/README.md if scroll has already happened and to not then scroll to the top which is it's default. Or perhaps easier to just not scroll at all on the initial load of the website.
Would you like to work on a PR? This would be really nice to fix!
This issue has gone quiet. Spooky quiet.
We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
Thanks for being a part of the Gatsby community!
Very good Thank you very much…
On Sun, 3 Feb 2019, 04:04 Kyle Mathews ***@***.*** wrote: @wardpeet <https://github.com/wardpeet> actually fixed this a couple of weeks ago! #11224 <#11224> — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#6392 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AH_TYa40H88TvTPGJoR163--0dn3TjR0ks5vJl-wgaJpZM4VLn7B> .