fix
This commit is contained in:
parent
59024ae4f0
commit
341f613220
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue