Skip to content

Commit 2046203

Browse files
Update src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js
Co-authored-by: gabalafou <gabriel@fouasnon.com>
1 parent 09b58f8 commit 2046203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ async function addTOCScrollSpy() {
991991
// Intersection observer options
992992
const options = {
993993
root: null,
994-
rootMargin: `0px 0px -70% 0px`, // Use -70% for the bottom margin to so that intersection events happen in only the top third of the viewport
994+
rootMargin: `0px 0px -70% 0px`, // Use -70% for the bottom margin so that intersection events happen in only the top third of the viewport
995995
threshold: 1, // Trigger once the heading becomes fully visible within the area described by the root margin
996996
};
997997

0 commit comments

Comments
 (0)