fix
This commit is contained in:
parent
321eaffdaf
commit
4d7ea437d7
1 changed files with 2 additions and 0 deletions
|
@ -13,12 +13,14 @@ document.getElementsByTagName('body')[0].onscroll = () => {
|
||||||
}
|
}
|
||||||
else if (currentScrollPos <= 60 && (window.innerHeight + currentScrollPos) < (document.body.offsetHeight - 100)) {
|
else if (currentScrollPos <= 60 && (window.innerHeight + currentScrollPos) < (document.body.offsetHeight - 100)) {
|
||||||
bottomBar.style.transform = "translateY(60px)";
|
bottomBar.style.transform = "translateY(60px)";
|
||||||
|
console.log('test 1')
|
||||||
}
|
}
|
||||||
else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) {
|
else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) {
|
||||||
bottomBar.style.transform = "translateY(0px)"
|
bottomBar.style.transform = "translateY(0px)"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
bottomBar.style.transform = "translateY(60px)"
|
bottomBar.style.transform = "translateY(60px)"
|
||||||
|
console.log('test 2')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue