fixed bug with quicktab on the result screen

This commit is contained in:
Jack 2020-10-20 16:01:32 +01:00
parent 3194cb4335
commit 52e96989f7

View file

@ -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 (