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