fix(theme-classic): temporarily disable toc heading autoscrolling (#6748)

This commit is contained in:
Sébastien Lorber 2022-02-24 11:28:17 +01:00 committed by GitHub
parent ece7399d2e
commit 89560226f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@ export default function useTOCHighlight(
}
link.classList.add(linkActiveClassName);
lastActiveLinkRef.current = link;
link.scrollIntoView({block: 'nearest'});
// link.scrollIntoView({block: 'nearest'});
} else {
link.classList.remove(linkActiveClassName);
}