-
Notifications
You must be signed in to change notification settings - Fork 59
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
TOC jumps to the wrong section #602
Comments
I am unable to reproduce the same issue on Firefox. What was the OS and the window size of the browser? |
On Windows 7 with screen resolution of 1600x900. |
Confirm bug on Firefox 111.0 on Ubuntu Linux. |
Confirmed replication on Ubuntu 22.04 Firefox 113.0.1 (64-bit). Screen resolution: 1920x1080 (16:9) Specifically, trying to navigate via the TOC from the top of the page produces the bug, not from any other position in an article. |
Confirmed replication on Windows 10 Firefox 113.0.2 (64 bit). |
I can finally reproduce this issue now. The root cause seems to be related to how Firefox handles CSS smooth scrolling. I might just switch over to a Javascript smooth scroll solution for the table of content instead of using a CSS one, hopefully that will resolve the issue. Though I don't have an ETA for now since my development MediaWiki setup is broken at the moment so I can't do anything complex, I will look into it later afterwards. For now, you can fix the issue by disabling smooth scrolling. Put this in @media ( min-width: @width-breakpoint-tablet ) {
html.citizen-animations-ready {
scroll-behavior: auto;
}
} |
Even with the workaround deployed on my server, the page still jumps to the wrong position in the TOC. It's just no longer smooth with the scrolling transition. |
Can reproduce this at https://starcitizen.tools/Ships on macOS
while these browsers jump to the correct section:
Additionally, there appears to be an issue with jumping to references, where clicking on a reference will sometimes scroll a very short amount and stop (instead of continuing to scroll to the reference). I can't seem to reproduce it on https://starcitizen.tools, but can reproduce on https://signal.miraheze.org/wiki/Resources, https://signal.miraheze.org/wiki/List_of_features. Weirdly, while this issue also isn't reproducible in Safari, it is reproducible in Chrome, and seemingly more consistently than in Firefox. Yet, I believe the root cause for the issue may be the same, because setting The video shows the issue with two references, after which the third reference works as expected (so the issue isn't always reproducible): chrome.mp4Versions: Star Citizen Wiki:
Signal Wiki:
|
Should be fixed for a while. Please feel free to reopen the issue if this is reproducible again. |
Describe the Bug
Clicking link on table of contents on a long page when we are at the top of the page ("Back to top" is not visible) will jump to the wrong section.
Steps to reproduce the behavior:
Expected Behavior
The page jumps to the correct section, 'Manufacturers'
System
Tried on Firefox 110.
The text was updated successfully, but these errors were encountered: