From 07ab45d167bb5678aa6817b2b54150fa4bbf52a4 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 7 Mar 2023 18:54:43 +0100 Subject: [PATCH] disabled autoscroll --- frontend/src/ts/test/test-logic.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/test/test-logic.ts b/frontend/src/ts/test/test-logic.ts index 4e425ecdf..625cc059f 100644 --- a/frontend/src/ts/test/test-logic.ts +++ b/frontend/src/ts/test/test-logic.ts @@ -501,9 +501,9 @@ export function restart(options = {} as RestartOptions): void { $("#restartTestButton").blur(); MemoryFunboxTimer.reset(); QuoteRatePopup.clearQuoteStats(); - if (ActivePage.get() == "test" && window.scrollY > 0) { - window.scrollTo({ top: 0, behavior: "smooth" }); - } + // if (ActivePage.get() == "test" && window.scrollY > 0) { + // window.scrollTo({ top: 0, behavior: "smooth" }); + // } $("#wordsInput").val(" "); TestUI.reset();