mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-27 01:06:21 +08:00
resetting keysobj
This commit is contained in:
parent
7e0c56b381
commit
c9f5934808
1 changed files with 2 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ export function setKeypressTimingsTooLong(): void {
|
|||
keypressTimings.duration.array = "toolong";
|
||||
}
|
||||
|
||||
const keysObj: Record<string, number> = {};
|
||||
let keysObj: Record<string, number> = {};
|
||||
|
||||
export function pushKeypressDuration(val: number): void {
|
||||
(keypressTimings.duration.array as number[]).push(roundTo2(val));
|
||||
|
|
@ -391,6 +391,7 @@ export function resetKeypressTimings(): void {
|
|||
newKeypresDurationArray = [];
|
||||
totalOverlap = 0;
|
||||
lastOverlapStartTime = -1;
|
||||
keysObj = {};
|
||||
if (spacingDebug) console.clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue