From 50a4aed8298b346f0a397db4381f75bdfac2e95d Mon Sep 17 00:00:00 2001 From: Adam French Date: Fri, 6 Feb 2026 15:52:07 +0000 Subject: [PATCH] fixed dogshit scroll --- nginx/vue/src/components/util/AutoScroll.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nginx/vue/src/components/util/AutoScroll.vue b/nginx/vue/src/components/util/AutoScroll.vue index d814350..acf041d 100644 --- a/nginx/vue/src/components/util/AutoScroll.vue +++ b/nginx/vue/src/components/util/AutoScroll.vue @@ -13,7 +13,6 @@ const SPEED = 0.5; // px per frame const PAUSE = 2000; // ms at top/bottom let direction = 1; // 1 = down, -1 = up -let scrollPos = 0; let timeoutId; let timeoutId2; @@ -28,8 +27,7 @@ function handleHover() { function tick() { const el = container.value; - scrollPos += SPEED * direction; - el.scrollTop = scrollPos; + el.scrollTop += SPEED * direction; const reachedBottom = el.scrollTop + el.clientHeight >= el.scrollHeight; const reachedTop = el.scrollTop <= 0;