This commit is contained in:
kek7198 2021-12-06 22:04:56 -06:00
parent 06e4b61481
commit da9da85dd4

View file

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