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