gitbook
gitbook copied to clipboard
scrollY persists on page change instead of starting at the top
Issue Description
When I click from one page to another, the scrollY value persists, and I'll start at the middle of another page instead of the top. I'm not sure if it fully qualifies as a bug, but I've noticed it happens both on my site and other Gitbook sites I've visited.
Steps to Reproduce
- Navigate to a page
- Scroll down anywhere
- Navigate to another page, end up in the middle
Example
This example is from another GitBook site:
https://github.com/user-attachments/assets/5826b67c-ba02-4971-97f6-09e966357f07
Hi @brvarner, thanks for opening this! We've logged this internally and will triage this in an upcoming cycle.
Please feel free to leave us any additional context that may be helpful.
Awesome! I look forward to any updates