message: feat(header): add maxScroll to hiding logic
diff: @@ -20,8 +20,10 @@ export class DocsHeader {
  handleScroll = () => {
  if (!this.frameRequested) {
  requestAnimationFrame(() => {
  - const { scrollY } = window;
  - this.hidden = scrollY > 60 && scrollY > this.prevScroll;
  + const { scrollY, innerHeight } = window;
  + const { height } = document.body.getBoundingClientRect();
  + const maxScroll = height - innerHeight - 60;
  + this.hidden = scrollY > 60 && scrollY > this.prevScroll || scrollY > maxScroll;
  this.prevScroll = scrollY;
  this.frameRequested = false;
  });
  