This commit is contained in:
NoriDev 2023-02-07 16:07:00 +09:00
parent 75b683e8e1
commit 7b63ae2b5c

View file

@ -196,7 +196,7 @@ onBeforeUnmount(() => {
window.removeEventListener('scroll', onScroll);
});
function onScroll () {
function onScroll() {
const currentScrollPosition = window.scrollY || document.documentElement.scrollTop;
if (currentScrollPosition < 0) {
return;