mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-22 13:53:04 +08:00
stopping animations on restart
removing smooth scroller on restart
This commit is contained in:
parent
02e3c5a46f
commit
40cd8c58b0
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue