mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 03:50:45 +08:00
fixed a bug where the caret would blink during the test
This commit is contained in:
parent
159b9634d5
commit
f4b75e42bf
1 changed files with 5 additions and 1 deletions
|
@ -288,7 +288,11 @@ function setFocus(foc) {
|
|||
$("#middle").addClass("focus");
|
||||
} else if (!foc && focusState) {
|
||||
focusState = false;
|
||||
startCaretAnimation();
|
||||
if (testActive) {
|
||||
stopCaretAnimation();
|
||||
} else {
|
||||
startCaretAnimation();
|
||||
}
|
||||
$("#top").removeClass("focus");
|
||||
$("#bottom").removeClass("focus");
|
||||
$("body").css("cursor", "default");
|
||||
|
|
Loading…
Reference in a new issue