refactor
This commit is contained in:
parent
75b683e8e1
commit
7b63ae2b5c
|
@ -196,7 +196,7 @@ onBeforeUnmount(() => {
|
|||
window.removeEventListener('scroll', onScroll);
|
||||
});
|
||||
|
||||
function onScroll () {
|
||||
function onScroll() {
|
||||
const currentScrollPosition = window.scrollY || document.documentElement.scrollTop;
|
||||
if (currentScrollPosition < 0) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue