mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-01 01:05:06 +08:00
always checking if input value is different than current test input
should help with #4407, maybe #4389 and
This commit is contained in:
parent
46f4c69e5f
commit
79a3b3edb6
1 changed files with 4 additions and 1 deletions
|
@ -1186,7 +1186,8 @@ $("#wordsInput").on("input", (event) => {
|
|||
if (!CompositionState.getComposing()) {
|
||||
Replay.addReplayEvent("setLetterIndex", currTestInput.length - 1);
|
||||
}
|
||||
} else if (inputValue !== currTestInput) {
|
||||
}
|
||||
if (inputValue !== currTestInput) {
|
||||
let diffStart = 0;
|
||||
while (inputValue[diffStart] === currTestInput[diffStart]) {
|
||||
diffStart++;
|
||||
|
@ -1202,6 +1203,8 @@ $("#wordsInput").on("input", (event) => {
|
|||
}
|
||||
}
|
||||
|
||||
console.log(TestInput.input.current);
|
||||
|
||||
setWordsInput(" " + TestInput.input.current);
|
||||
updateUI();
|
||||
if (Config.tapeMode !== "off") {
|
||||
|
|
Loading…
Reference in a new issue