mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 13:55:19 +08:00
Update live accuracy on keypress
This commit is contained in:
parent
4ddeac4a0d
commit
63af71652e
1 changed files with 7 additions and 2 deletions
|
@ -2767,8 +2767,6 @@ function startTest() {
|
|||
100
|
||||
);
|
||||
|
||||
updateLiveAcc(acc);
|
||||
|
||||
if (activeFunBox === "layoutfluid" && config.mode === "time") {
|
||||
const layouts = ["qwerty", "dvorak", "colemak"];
|
||||
let index = 0;
|
||||
|
@ -4746,6 +4744,13 @@ $(document).keydown(function (event) {
|
|||
if (wordsFocused) {
|
||||
handleAlpha(event);
|
||||
}
|
||||
|
||||
let acc = Misc.roundTo2(
|
||||
(accuracyStats.correct /
|
||||
(accuracyStats.correct + accuracyStats.incorrect)) *
|
||||
100
|
||||
);
|
||||
updateLiveAcc(acc);
|
||||
});
|
||||
|
||||
function handleTab(event) {
|
||||
|
|
Loading…
Reference in a new issue