From 6bc5d4b40beb33bab5b234216a8801e8565d1055 Mon Sep 17 00:00:00 2001 From: Adam French Date: Fri, 6 Feb 2026 15:34:33 +0000 Subject: [PATCH] fixed dogshit scroll --- nginx/vue/src/components/util/AutoScroll.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx/vue/src/components/util/AutoScroll.vue b/nginx/vue/src/components/util/AutoScroll.vue index 11f135c..acf041d 100644 --- a/nginx/vue/src/components/util/AutoScroll.vue +++ b/nginx/vue/src/components/util/AutoScroll.vue @@ -9,9 +9,8 @@ import { useTemplateRef, onMounted, onBeforeUnmount } from "vue"; const container = useTemplateRef("container"); -const SPEED = 1; // px per frame +const SPEED = 0.5; // px per frame const PAUSE = 2000; // ms at top/bottom -const FRAME_TIME = 50; // ms at top/bottom let direction = 1; // 1 = down, -1 = up let timeoutId; @@ -35,6 +34,8 @@ function tick() { if (reachedBottom || reachedTop) { direction *= -1; + handleHover(); + return; } timeoutId = requestAnimationFrame(tick);