From 160c006a28ffbdc1795d7e5925ee84dedb81fb04 Mon Sep 17 00:00:00 2001 From: Florian Sorg Date: Sat, 21 May 2022 19:40:49 +0200 Subject: [PATCH] terminal: workaround for chrome weirdness when reloading --- shiftregister/signage/templates/terminal.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shiftregister/signage/templates/terminal.html b/shiftregister/signage/templates/terminal.html index 2a77a3b..3ca225b 100644 --- a/shiftregister/signage/templates/terminal.html +++ b/shiftregister/signage/templates/terminal.html @@ -34,7 +34,9 @@ let current = 0; let interval; - window.scrollTo({top: 0}); + setTimeout(() => { + window.scrollTo({top: 0}); + }, 10); if (max > 0) { setTimeout(() => {