gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

scrollY persists on page change instead of starting at the top

Open brvarner opened this issue 2 months ago • 2 comments

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

  1. Navigate to a page
  2. Scroll down anywhere
  3. 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

brvarner avatar Oct 24 '25 16:10 brvarner

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.

talagluck avatar Oct 24 '25 17:10 talagluck

Awesome! I look forward to any updates

brvarner avatar Oct 24 '25 17:10 brvarner