This commit is contained in:
kek7198 2021-12-06 21:54:20 -06:00
parent 74bebd15ce
commit 1938038acd
2 changed files with 3 additions and 3 deletions

View file

@ -12,12 +12,12 @@ document.getElementsByTagName('body')[0].onscroll = () => {
bottomBar.style.transform = "translateY(60px)"; bottomBar.style.transform = "translateY(60px)";
console.log('test 2') console.log('test 2')
} }
else if (prevScrollpos < currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight - 60)) { else if (prevScrollpos < currentScrollPos && (window.innerHeight + currentScrollPos) >= (document.body.offsetHeight)) {
bottomBar.style.transform = "translateY(60px)"; bottomBar.style.transform = "translateY(60px)";
console.log(document.body.offsetHeight) console.log(document.body.offsetHeight)
console.log((window.innerHeight + currentScrollPos)) console.log((window.innerHeight + currentScrollPos))
} }
else if (prevScrollpos > currentScrollPos && (window.innerHeight + currentScrollPos) < (document.body.offsetHeight - 60)) { else if (prevScrollpos > currentScrollPos) {
bottomBar.style.transform = "translateY(0px)" bottomBar.style.transform = "translateY(0px)"
console.log('test 1') console.log('test 1')
} }

View file

@ -332,7 +332,7 @@
<script src="/assets/js/gif_modal.js?v=56"></script> <script src="/assets/js/gif_modal.js?v=56"></script>
<script src="/assets/js/emoji_modal.js?v=142"></script> <script src="/assets/js/emoji_modal.js?v=142"></script>
<script src="/assets/js/mobile_navigation_bar.js?v=97"></script> <script src="/assets/js/mobile_navigation_bar.js?v=98"></script>
{% if v %} {% if v %}
<script>function formkey() {return '{{v.formkey}}';}</script> <script>function formkey() {return '{{v.formkey}}';}</script>