This commit is contained in:
kek7198 2021-12-06 21:58:02 -06:00
parent fd3fcf2b92
commit 523aedb19a

View file

@ -12,7 +12,7 @@ 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 && (currentScrollPos) >= (document.body.offsetHeight)) { else if ((currentScrollPos) >= (document.body.offsetHeight)) {
bottomBar.style.transform = "translateY(60px)"; bottomBar.style.transform = "translateY(60px)";
console.log(document.body.offsetHeight) console.log(document.body.offsetHeight)
console.log((window.innerHeight + currentScrollPos)) console.log((window.innerHeight + currentScrollPos))
@ -21,10 +21,6 @@ document.getElementsByTagName('body')[0].onscroll = () => {
bottomBar.style.transform = "translateY(0px)" bottomBar.style.transform = "translateY(0px)"
console.log('test 1') console.log('test 1')
} }
else {
bottomBar.style.transform = "translateY(60px)"
console.log('test 4')
}
} }
// if (topBar != null && dropdown != null) { // if (topBar != null && dropdown != null) {