Skip to content

Page randomly jumps back to top when scrolling #2957

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

Open
mmouseenvelope12 opened this issue Mar 10, 2025 · 7 comments
Open

Page randomly jumps back to top when scrolling #2957

mmouseenvelope12 opened this issue Mar 10, 2025 · 7 comments
Labels

Comments

@mmouseenvelope12
Copy link

Bug description

After scrolling down, pages will sometimes jump back to the top.

How to reproduce

  1. Load a scrollable page such as https://docs.gitbook.com/creating-content/formatting/inline
  2. X out of the cookies notification
  3. Wait a few seconds
  4. Scroll down.
  5. Observe that the window jumps back to the very top of the page

It happens roughly 25% of the time. If it doesn't happen the first time, navigate to a different page and try again.

We're reproduced on macs, PCs, and across multiple browsers including Chrome and Safari.

Seems to affect all spaces/docs published on gitbook.

Additional context

Screen recording of the issue. It happens on the second attempt.

Untitled-HD.1080p.mov

Clients are complaining and blaming us. Please fix.

@masterbrews
Copy link

This is extremely annoying, I seem to get it 100% as do our users on every single page...is team planning to address this bug soon? As a long-term paying subscriber, seeing it reported here since over a month ago with no team comments is disappointing.

@addisonschultz
Copy link
Contributor

Hi @masterbrews - Apologies for the radio silence. This has indeed been on our radar, and logged in our backlog, but I don’t have a clear date one when we’ll be able to squash this one. I’ve pinged the team to add some urgency here!

@masterbrews
Copy link

masterbrews commented Apr 25, 2025 via email

@mmouseenvelope12
Copy link
Author

Hi @masterbrews - Apologies for the radio silence. This has indeed been on our radar, and logged in our backlog, but I don’t have a clear date one when we’ll be able to squash this one. I’ve pinged the team to add some urgency here!

Any updates? This is beyond frustrating.

@addisonschultz
Copy link
Contributor

@mmouseenvelope12 Hi there - I’ve been trying to reproduce this on my end with multiple sites but am not seeing the same behavior. Is this only happening after you X out of the cookie banner? Can you link other sites you are facing this issue with?

@mmouseenvelope12
Copy link
Author

mmouseenvelope12 commented Jun 16, 2025

@addisonschultz Thank you for looking into this. I can reproduce even without X-ing out of the cookie banner, so that doesn't appear related. Try this site. Use incognito so that you can close and reopen the window to force assets to load again. It seems to happen more consistently when there are images being loaded.

@masterbrews Did you find a way to reproduce this more consistently?

@john-gitbook
Copy link

@mmouseenvelope12. We have a ticket for this but it seems to be very difficult to replicate. We've tried on multiple computers and browsers. Can you send a screen recording with your console logs to [email protected]? We can then add this to the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants