This commit is contained in:
kek7198 2021-12-12 23:01:34 -06:00
parent 5a9918683d
commit 6107bd807d

View file

@ -9,15 +9,15 @@ document.getElementsByTagName('body')[0].onscroll = () => {
if (bottomBar != null) {
if (currentScrollPos <= 60 || ((window.innerHeight + currentScrollPos) < document.body.offsetHeight)) {
console.log('less than 60 greater than offsetHeight');
// console.log('less than 60 greater than offsetHeight');
bottomBar.style.transform = "translateY(60px)";
}
else if (prevScrollpos > currentScrollPos) {
console.log('prev greater than current');
// console.log('prev greater than current');
bottomBar.style.transform = "translateY(0px)"
}
else {
console.log('else');
// console.log('else');
bottomBar.style.transform = "translateY(60px)";
}
}