mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-04 18:53:26 +08:00
chore: focus words earlier to avoid flashing issues
This commit is contained in:
parent
0b0fff939a
commit
57d9fc3b04
1 changed files with 1 additions and 1 deletions
|
@ -376,6 +376,7 @@ export function restart(options = {} as RestartOptions): void {
|
|||
|
||||
const isWordsFocused = $("#wordsInput").is(":focus");
|
||||
if (isWordsFocused) OutOfFocus.hide();
|
||||
TestUI.focusWords();
|
||||
|
||||
$("#typingTest")
|
||||
.css("opacity", 0)
|
||||
|
@ -405,7 +406,6 @@ export function restart(options = {} as RestartOptions): void {
|
|||
"0";
|
||||
|
||||
TestUI.setTestRestarting(false);
|
||||
TestUI.focusWords();
|
||||
TestUI.updatePremid();
|
||||
ManualRestart.reset();
|
||||
PageTransition.set(false);
|
||||
|
|
Loading…
Reference in a new issue