From 40cd8c58b0140cb8029f78a37629dcbc5809ac68 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 17 Oct 2022 15:15:03 +0200 Subject: [PATCH] stopping animations on restart removing smooth scroller on restart --- frontend/src/ts/test/test-logic.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/ts/test/test-logic.ts b/frontend/src/ts/test/test-logic.ts index 65d11a538..ddf11d7e0 100644 --- a/frontend/src/ts/test/test-logic.ts +++ b/frontend/src/ts/test/test-logic.ts @@ -490,6 +490,9 @@ export function restart(options = {} as RestartOptions): void { repeatWithPace = true; } + $("#words").stop(true, true); + $("#words .smoothScroller").stop(true, true).remove(); + ManualRestart.reset(); TestTimer.clear(); TestStats.restart();