This commit is contained in:
kek7198 2021-12-06 21:44:04 -06:00
parent bf246181ac
commit e822195532

View file

@ -12,14 +12,13 @@ document.getElementsByTagName('body')[0].onscroll = () => {
bottomBar.style.transform = "translateY(60px)"; bottomBar.style.transform = "translateY(60px)";
console.log('test 2') console.log('test 2')
} }
else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) { else if ((window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 60)) {
bottomBar.style.transform = "translateY(60px)";
}
else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 60)) {
bottomBar.style.transform = "translateY(0px)" bottomBar.style.transform = "translateY(0px)"
console.log('test 1') console.log('test 1')
} }
else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) {
bottomBar.style.transform = "translateY(0px)"
console.log('test 3')
}
else { else {
bottomBar.style.transform = "translateY(60px)" bottomBar.style.transform = "translateY(60px)"
console.log('test 4') console.log('test 4')