Skip to content

Commit

Permalink
fix the behavior of sticky header (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnitta authored and Dylan-DPC committed Oct 19, 2019
1 parent 6af6219 commit a592da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,6 @@ function playpen_text(playpen) {
menu.classList.remove('bordered');
}

previousScrollTop = document.scrollingElement.scrollTop;
previousScrollTop = Math.max(document.scrollingElement.scrollTop, 0);
}, { passive: true });
})();

0 comments on commit a592da3

Please sign in to comment.