This commit is contained in:
kek7198 2021-12-06 21:52:49 -06:00
parent 8a90c48d03
commit 3a6775b70a

View file

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