mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-23 00:37:29 +08:00
fixed timer not starting when starting to type during the transition
This commit is contained in:
parent
8dbef995a3
commit
1e50f38b4f
|
@ -3176,7 +3176,6 @@ function restartTest(withSameWordset = false, nosave = false, event) {
|
|||
},
|
||||
125,
|
||||
async () => {
|
||||
pageTransition = false;
|
||||
$("#monkey .fast").stop(true, true).css("opacity", 0);
|
||||
$("#monkey").stop(true, true).css({ animationDuration: "0s" });
|
||||
$("#typingTest").css("opacity", 0).removeClass("hidden");
|
||||
|
@ -3279,6 +3278,7 @@ function restartTest(withSameWordset = false, nosave = false, event) {
|
|||
if ($("#commandLineWrapper").hasClass("hidden")) focusWords();
|
||||
wpmOverTimeChart.update();
|
||||
updateTestModesNotice();
|
||||
pageTransition = false;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue