diff --git a/src/theme/book.js b/src/theme/book.js index 1911b118..67a8a5b0 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -551,13 +551,6 @@ function playground_text(playground, hidden = true) { firstContact = null; } }, { passive: true }); - - // Scroll sidebar to current active section - var activeSection = document.getElementById("sidebar").querySelector(".active"); - if (activeSection) { - // https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView - activeSection.scrollIntoView({ block: 'center' }); - } })(); (function chapterNavigation() { diff --git a/src/theme/index.hbs b/src/theme/index.hbs index 195e41bc..80315c48 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -110,6 +110,28 @@ + + +