This commit is contained in:
kek7198 2021-12-06 22:03:43 -06:00
parent 47793c4337
commit b2630fdfd5

View file

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