mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 07:46:15 +08:00
fixed bug with quicktab on the result screen
This commit is contained in:
parent
3194cb4335
commit
52e96989f7
|
@ -4535,13 +4535,14 @@ window.addEventListener("beforeunload", (event) => {
|
|||
|
||||
//handle keyboard events
|
||||
$(document).keydown((event) => {
|
||||
if (resultVisible) return;
|
||||
let now = performance.now();
|
||||
let diff = Math.abs(keypressStats.spacing.current - now);
|
||||
if (keypressStats.spacing.current !== -1) {
|
||||
keypressStats.spacing.array.push(diff);
|
||||
if (!resultVisible) {
|
||||
let now = performance.now();
|
||||
let diff = Math.abs(keypressStats.spacing.current - now);
|
||||
if (keypressStats.spacing.current !== -1) {
|
||||
keypressStats.spacing.array.push(diff);
|
||||
}
|
||||
keypressStats.spacing.current = now;
|
||||
}
|
||||
keypressStats.spacing.current = now;
|
||||
|
||||
//tab
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue