We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fdccb4 commit b2ddbd2Copy full SHA for b2ddbd2
theme/toc.js.hbs
@@ -70,7 +70,8 @@ class MDBookSidebarScrollbox extends HTMLElement {
70
}, { passive: true });
71
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
72
sessionStorage.removeItem('sidebar-scroll');
73
- if (sidebarScrollTop) {
+ // MOD: Always do this as otherwise it breaks the content scrolling
74
+ if (true || sidebarScrollTop) {
75
// preserve sidebar scroll position when navigating via links within sidebar
76
this.scrollTop = sidebarScrollTop;
77
} else {
0 commit comments