Skip to content

Commit 33c3722

Browse files
committed
Remove scrollIntoView() to fix scroll jank preventing users from scrolling
1 parent c470aa3 commit 33c3722

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/_includes/scripts/in-page-nav.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const observer = new IntersectionObserver(entries => {
99
const id = entry.target.getAttribute('id')
1010
const newActive = document.querySelector(`.pageNav a[href="#${id}"]`);
1111
newActive.classList.add('is-active');
12-
newActive.scrollIntoView({ block: 'nearest' });
1312
}
1413
}, { rootMargin: `0% 0% -90% 0%` }
1514
);

0 commit comments

Comments
 (0)