Skip to content

Commit eb40133

Browse files
committed
remove unnecessary scroll event
1 parent 2130b6b commit eb40133

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/layouts/WikiArticle.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ export interface Props {
180180
.forEach((heading) => intersectionObserver.observe(heading));
181181

182182
// Watch for article scrolling to scroll outline
183-
document.addEventListener("scroll", () => scrollOutline());
184183
centerColumn.addEventListener("scroll", () => scrollOutline());
185184

186185
// Force browser to scroll to targeted heading on page load

0 commit comments

Comments
 (0)