fix the behavior of sticky header (#1070)
This commit is contained in:
parent
6af6219e5b
commit
a592da33bb
|
@ -602,6 +602,6 @@ function playpen_text(playpen) {
|
||||||
menu.classList.remove('bordered');
|
menu.classList.remove('bordered');
|
||||||
}
|
}
|
||||||
|
|
||||||
previousScrollTop = document.scrollingElement.scrollTop;
|
previousScrollTop = Math.max(document.scrollingElement.scrollTop, 0);
|
||||||
}, { passive: true });
|
}, { passive: true });
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue