diff --git a/nginx/vue/src/components/util/AutoScroll.vue b/nginx/vue/src/components/util/AutoScroll.vue index f319340..c778eaf 100644 --- a/nginx/vue/src/components/util/AutoScroll.vue +++ b/nginx/vue/src/components/util/AutoScroll.vue @@ -29,9 +29,10 @@ function handleHover() { function tick() { const el = container.value; + pos = el.scrollTop / el.scrollHeight; + const reachedBottom = pos <= 0; const reachedTop = pos >= 1; - console.log("speed"); if (reachedBottom) { pos = 0.001;