Skip to content

Commit 85ed2f2

Browse files
committed
Only highlight if sticky
1 parent 17ccb9e commit 85ed2f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

quantecon_book_theme/static/quantecon-book-theme.7c7781027ddb99a60a636171185ad1c7.js renamed to quantecon_book_theme/static/quantecon-book-theme.f621b854f5af3f0e49f2793917d287f0.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/quantecon-book-theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,6 @@ $(window).on('load', () => {
281281
feather.replace();
282282

283283
// Highlight page TOC links as user scrolls
284-
$(".page__toc-nav ul").scrollspy();
284+
$(".sticky .page__toc-nav ul").scrollspy();
285285

286286
})

0 commit comments

Comments
 (0)