Skip to content

Commit 2ee3914

Browse files
committed
Fix: Correct the navigation to anchor
1 parent 57c2b66 commit 2ee3914

File tree

1 file changed

+6
-6
lines changed
  • scaladoc/resources/dotty_res/scripts

1 file changed

+6
-6
lines changed

scaladoc/resources/dotty_res/scripts/ux.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ document
284284

285285
getTocListElement(id).parentElement.classList.toggle("active");
286286
}
287-
if (lastEntry.isIntersecting) {
288-
window.location.hash = "";
289-
removeAllHighlights();
290-
const id = getIdOfElement(lastEntry);
287+
// if (lastEntry.isIntersecting) {
288+
// window.location.hash = "";
289+
// removeAllHighlights();
290+
// const id = getIdOfElement(lastEntry);
291291

292-
getTocListElement(id).parentElement.classList.toggle("active");
293-
}
292+
// getTocListElement(id).parentElement.classList.toggle("active");
293+
// }
294294
},
295295
{
296296
rootMargin: "-10% 0px -50%",

0 commit comments

Comments
 (0)