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

Side navigation menu doesn't work #159

Open
jpatrickburns opened this issue Jun 28, 2022 · 2 comments
Open

Side navigation menu doesn't work #159

jpatrickburns opened this issue Jun 28, 2022 · 2 comments

Comments

@jpatrickburns
Copy link

jpatrickburns commented Jun 28, 2022

... at least on a modern Mac, and latest OS (and Safari). Just checked, doesn't work in Chrome, either.

Clicking on the side menu links (to anchors) doesn't scroll to the right section of the document. Is the fancy scrolling stuff somehow messing up this fundamental behavior? BTW, the URL changes, it just doesn't go to that part of the document.

Bummer.

@tophtucker
Copy link
Collaborator

Just noticed this. Also, the black box at the top of the TOC heatmap is supposed to track scroll progress, but now it’s just stuck at the top.

BC253516-8A91-4142-8FF6-AA7DAE2DB69D-676-0009506F7E2FD36E

This definitely worked originally lol! 😅 So I don’t think it’s any of the fancy stuff. I think we’re looking at document.body.scrollTop in some places where we should be looking at document.documentElement.scrollTop or window.scrollY.

I think scroll position isn't set on document.body in most modern browsers - it's usually set on document.documentElement now. See bugs.chromium.org/p/chromium/issues/detail?id=157855 for Chrome's transition. – fzzfzzfzz, May 3, 2018 at 15:51

@jpatrickburns
Copy link
Author

jpatrickburns commented Sep 4, 2024 via email

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

No branches or pull requests

2 participants