mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
fixed backspace events not working correctly in replays
This commit is contained in:
parent
8e54176b0f
commit
eb6254a340
|
@ -1053,7 +1053,7 @@ $("#wordsInput").on("input", (event) => {
|
|||
TestUI.updateWordElement();
|
||||
Caret.updatePosition();
|
||||
if (!CompositionState.getComposing()) {
|
||||
Replay.addReplayEvent("setLetterIndex", currTestInput.length);
|
||||
Replay.addReplayEvent("setLetterIndex", currTestInput.length - 1);
|
||||
}
|
||||
} else if (inputValue !== currTestInput) {
|
||||
let diffStart = 0;
|
||||
|
|
Loading…
Reference in a new issue