This commit is contained in:
kek7198 2021-12-06 21:58:57 -06:00
parent 59024ae4f0
commit 341f613220
2 changed files with 2 additions and 2 deletions

View file

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