This commit is contained in:
kek7198 2021-12-06 21:29:14 -06:00
parent 096befdbe4
commit ae0802479c

View file

@ -9,11 +9,11 @@ document.getElementsByTagName('body')[0].onscroll = () => {
if (bottomBar != null) { if (bottomBar != null) {
if (currentScrollPos <= 60 && (window.innerHeight + currentScrollPos) < (document.body.offsetHeight - 100)) { if (currentScrollPos <= 60 && (window.innerHeight + currentScrollPos) < (document.body.offsetHeight - 100)) {
bottomBar.style.transform = "translateY(0px)"; 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 (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 100)) {
bottomBar.style.transform = "translateY(60px)" bottomBar.style.transform = "translateY(0px)"
console.log('test 1') 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)) {