Skip to content
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

Sidebars scroll is finished already on page load. #1667

Closed
fahidjavid opened this issue May 3, 2020 · 5 comments
Closed

Sidebars scroll is finished already on page load. #1667

fahidjavid opened this issue May 3, 2020 · 5 comments
Labels
bug Issue reports a bug

Comments

@fahidjavid
Copy link

Hi,

When loading the document page if left and right sidebars are scrollable then they are already scrolled that’s not good.

Any fix to start scroll from start on page load?

Issue also appears on the actual document of Material theme. Screenshot: https://jmp.sh/6yVoAGE

Thanks

@fahidjavid fahidjavid changed the title Sidebars scroll is finish already on page load. Sidebars scroll is finished already on page load. May 3, 2020
@squidfunk
Copy link
Owner

That's odd. It should start from the top.

@squidfunk squidfunk added the bug Issue reports a bug label May 3, 2020
@squidfunk
Copy link
Owner

Note, that this only seems to happen in Chrome. It seems that Firefox and Safari are unaffected.

@squidfunk
Copy link
Owner

squidfunk commented May 3, 2020

Oddly enough, this seems to be a bug in Chrome 81+ which is related to scroll-snap-type. It worked before and I'm not seeing the behavior on any other browser.

If we set scroll-snap-type after a slight delay (as in 1b72c9f), it seems to work fine, though. We can include and ship this hack until Chrome resolves the issue, as it's really annoying. If somebody comes up with a better explanation and/or hack, I'm happy to merge PRs.

@squidfunk squidfunk added the resolved Issue is resolved, yet unreleased if open label May 3, 2020
@squidfunk
Copy link
Owner

Released as part of 5.1.5.

@squidfunk squidfunk removed the resolved Issue is resolved, yet unreleased if open label May 3, 2020
@fahidjavid
Copy link
Author

Thank you @squidfunk for this quick fix and release!

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

No branches or pull requests

2 participants