Skip to content

Commit a592da3

Browse files
rnittaDylan-DPC
authored andcommitted
fix the behavior of sticky header (#1070)
1 parent 6af6219 commit a592da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/book.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,6 @@ function playpen_text(playpen) {
602602
menu.classList.remove('bordered');
603603
}
604604

605-
previousScrollTop = document.scrollingElement.scrollTop;
605+
previousScrollTop = Math.max(document.scrollingElement.scrollTop, 0);
606606
}, { passive: true });
607607
})();

0 commit comments

Comments
 (0)