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