fix
This commit is contained in:
parent
fd3fcf2b92
commit
523aedb19a
1 changed files with 1 additions and 5 deletions
|
@ -12,7 +12,7 @@ document.getElementsByTagName('body')[0].onscroll = () => {
|
|||
bottomBar.style.transform = "translateY(60px)";
|
||||
console.log('test 2')
|
||||
}
|
||||
else if (prevScrollpos < currentScrollPos && (currentScrollPos) >= (document.body.offsetHeight)) {
|
||||
else if ((currentScrollPos) >= (document.body.offsetHeight)) {
|
||||
bottomBar.style.transform = "translateY(60px)";
|
||||
console.log(document.body.offsetHeight)
|
||||
console.log((window.innerHeight + currentScrollPos))
|
||||
|
@ -21,10 +21,6 @@ document.getElementsByTagName('body')[0].onscroll = () => {
|
|||
bottomBar.style.transform = "translateY(0px)"
|
||||
console.log('test 1')
|
||||
}
|
||||
else {
|
||||
bottomBar.style.transform = "translateY(60px)"
|
||||
console.log('test 4')
|
||||
}
|
||||
}
|
||||
|
||||
// if (topBar != null && dropdown != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue