-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Scaladoc: scaladoc anchor navigation can't handle some same page links #17182
Labels
Comments
@KacperFKorban Which browser do you use? On my Firefox I can’t reproduce the issue. |
@julienrf I use Chrome. I see that the issue is reproducible, based on the previous comment. @Florian3k Can you take a look at @Dedelweiss suggestion? |
ckipp01
pushed a commit
that referenced
this issue
Jun 12, 2023
The browser compatibility of [`location.hash`](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash) seems to be out of date. That's why in this fix, I suggest using [`history.replaceState`](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState). ## Before: https://github.com/lampepfl/dotty/assets/44496264/a1399b0b-e4e8-4754-b146-661b59a01824 ## After: https://github.com/lampepfl/dotty/assets/44496264/22f38852-0cc5-48eb-a6e7-699f11628401 Fixes: #17182
Kordyjan
pushed a commit
that referenced
this issue
Nov 17, 2023
The browser compatibility of [`location.hash`](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash) seems to be out of date. That's why in this fix, I suggest using [`history.replaceState`](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState). ## Before: https://github.com/lampepfl/dotty/assets/44496264/a1399b0b-e4e8-4754-b146-661b59a01824 ## After: https://github.com/lampepfl/dotty/assets/44496264/22f38852-0cc5-48eb-a6e7-699f11628401 Fixes: #17182 [Cherry-picked 7694985]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
main
Description
In some cases, scaladoc can't properly scroll to anchors that are on the same page. In those cases, it takes several tries for scaladoc to scroll the entire way.
e.g.
Expectation
Scaladoc should always be able to scroll to anchors.
The text was updated successfully, but these errors were encountered: