resetting

This commit is contained in:
Miodec 2023-03-28 15:08:51 +02:00
parent 2abd1c202f
commit 0a259d7eb3

View file

@ -244,7 +244,7 @@ export function setKeypressDuration(val: number): void {
let t2 = 0;
let d2 = 0;
const a: number[] = [];
let a: number[] = [];
export function recordKeyupTime(key: string): void {
const now = performance.now();
@ -327,6 +327,11 @@ export function resetKeypressTimings(): void {
array: [],
},
};
a = [];
t1 = 0;
d1 = 0;
t2 = 0;
d2 = 0;
if (spacingDebug) console.clear();
}