-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Instant loading scroll restoration #1507
Comments
Hmm. Could you please add some more information and adhere to the issue template? |
Done! |
Perfect, thanks! |
Should be fixed as of 4d370fe. The reason why this was happening lies in the fact that the value of mkdocs-material/src/assets/javascripts/index.ts Lines 361 to 363 in 4d370fe
The following line now hands back the task of scroll restoration to the browser before the reload: mkdocs-material/src/assets/javascripts/index.ts Lines 352 to 356 in 4d370fe
After the reload, scroll restoration is set back to |
It works!!! |
Cool. I'll be cleaning up some stuff today and will release a final RC including all fixes made. |
The fix was just released as part of RC 4. See #1498 for details. |
Description
Page refreshes do not keep your place but rather take you to the top in v5.x with the following config:
Expected behavior
Pressing F5 should maintain your approximate spot on the page
Actual behavior
Pressing F5 (without an anchor selected) takes you to the top
Steps to reproduce the bug
Package versions
Project configuration
System information
The text was updated successfully, but these errors were encountered: