From 739b2e95e1ccdcd8054c657f46988008c4f052c9 Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Thu, 14 Sep 2023 18:04:45 +0200 Subject: [PATCH] Small change in polling rate for the scrollbutton --- HaWeb/wwwroot/js/scrollbutton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HaWeb/wwwroot/js/scrollbutton.js b/HaWeb/wwwroot/js/scrollbutton.js index fc9715d..dad7192 100644 --- a/HaWeb/wwwroot/js/scrollbutton.js +++ b/HaWeb/wwwroot/js/scrollbutton.js @@ -22,5 +22,5 @@ if (document.getElementById("ha-scrollbutton") !== null) { document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera }) // TODO: workaround, bc window does not recieve scroll events anymore - setInterval(() => scrollFunction(), 1000); + setInterval(() => scrollFunction(), 2500); }