fix
This commit is contained in:
parent
7a7ca10097
commit
b40ab146f5
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ document.getElementsByTagName('body')[0].onscroll = () => {
|
|||
}
|
||||
else if (prevScrollpos < currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight)) {
|
||||
bottomBar.style.transform = "translateY(60px)";
|
||||
console.log('test 3')
|
||||
console.log(document.body.offsetHeight)
|
||||
console.log((window.innerHeight + currentScrollPos))
|
||||
}
|
||||
else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 60)) {
|
||||
bottomBar.style.transform = "translateY(0px)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue