mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 18:03:30 +08:00
more logs in spacing debug
This commit is contained in:
parent
f9eb1d6e5d
commit
d115a8d72d
1 changed files with 10 additions and 0 deletions
|
@ -965,6 +965,11 @@ $(document).keydown(async (event) => {
|
|||
|
||||
$("#wordsInput").keydown((event) => {
|
||||
if (event.originalEvent?.repeat) return;
|
||||
|
||||
if (TestInput.spacingDebug) {
|
||||
console.log("spacing debug keydown", event.key, event.code, event.which);
|
||||
}
|
||||
|
||||
const now = performance.now();
|
||||
setTimeout(() => {
|
||||
const isAndroid =
|
||||
|
@ -975,6 +980,11 @@ $("#wordsInput").keydown((event) => {
|
|||
|
||||
$("#wordsInput").keyup((event) => {
|
||||
if (event.originalEvent?.repeat) return;
|
||||
|
||||
if (TestInput.spacingDebug) {
|
||||
console.log("spacing debug keyup", event.key, event.code, event.which);
|
||||
}
|
||||
|
||||
const now = performance.now();
|
||||
setTimeout(() => {
|
||||
const isAndroid =
|
||||
|
|
Loading…
Reference in a new issue