mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 03:50:45 +08:00
Revert "updated when scolltape is called"
This reverts commit a3500adb97
.
This commit is contained in:
parent
9ebf824e7a
commit
537d25b7c0
1 changed files with 6 additions and 7 deletions
|
@ -214,9 +214,6 @@ function handleSpace(): void {
|
|||
}
|
||||
Replay.addReplayEvent("submitErrorWord");
|
||||
}
|
||||
if (Config.tapeMode !== "off") {
|
||||
TestUI.scrollTape();
|
||||
}
|
||||
|
||||
let wordLength;
|
||||
if (Config.mode === "zen") {
|
||||
|
@ -504,10 +501,6 @@ function handleChar(char: string, charIndex: number): void {
|
|||
TestInput.input.current = resultingWord;
|
||||
}
|
||||
|
||||
if (Config.tapeMode !== "off") {
|
||||
TestUI.scrollTape();
|
||||
}
|
||||
|
||||
if (!thisCharCorrect && Config.difficulty == "master") {
|
||||
TestInput.input.pushHistory();
|
||||
TestInput.corrected.pushHistory();
|
||||
|
@ -815,6 +808,9 @@ $(document).keydown(async (event) => {
|
|||
handleChar(char, TestInput.input.current.length);
|
||||
updateUI();
|
||||
setWordsInput(" " + TestInput.input.current);
|
||||
if (Config.tapeMode !== "off") {
|
||||
TestUI.scrollTape();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -891,6 +887,9 @@ $("#wordsInput").on("input", (event) => {
|
|||
|
||||
setWordsInput(" " + TestInput.input.current);
|
||||
updateUI();
|
||||
if (Config.tapeMode !== "off") {
|
||||
TestUI.scrollTape();
|
||||
}
|
||||
|
||||
// force caret at end of input
|
||||
// doing it on next cycle because Chromium on Android won't let me edit
|
||||
|
|
Loading…
Reference in a new issue