fix the behavior of sticky header (#1070)

This commit is contained in:
rnitta 2019-10-19 17:07:41 +09:00 committed by Dylan DPC
parent 6af6219e5b
commit a592da33bb
1 changed files with 1 additions and 1 deletions

View File

@ -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 });
})(); })();