From 6aeea0b9eb89b1308a44aa3dd04956dad3761a69 Mon Sep 17 00:00:00 2001 From: Adam French Date: Fri, 6 Feb 2026 15:30:55 +0000 Subject: [PATCH] fixed dogshit scroll --- nginx/vue/src/components/util/AutoScroll.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nginx/vue/src/components/util/AutoScroll.vue b/nginx/vue/src/components/util/AutoScroll.vue index 2f929e7..11f135c 100644 --- a/nginx/vue/src/components/util/AutoScroll.vue +++ b/nginx/vue/src/components/util/AutoScroll.vue @@ -15,10 +15,15 @@ const FRAME_TIME = 50; // ms at top/bottom let direction = 1; // 1 = down, -1 = up let timeoutId; +let timeoutId2; function handleHover() { cancelAnimationFrame(timeoutId); - setTimeout(() => (timeoutId = requestAnimationFrame(tick)), PAUSE); + clearTimeout(timeoutId2); + timeoutId2 = setTimeout( + () => (timeoutId = requestAnimationFrame(tick)), + PAUSE, + ); } function tick() {