mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-23 08:46:16 +08:00
fixed words jumping to the same line. closes #1940
This commit is contained in:
parent
30246f9f50
commit
c81e1ef004
|
@ -510,6 +510,7 @@ function handleChar(char, charIndex) {
|
|||
|
||||
let activeWordTopBeforeJump = document.querySelector("#words .word.active")
|
||||
.offsetTop;
|
||||
TestUI.updateWordElement();
|
||||
|
||||
if (!Config.hideExtraLetters) {
|
||||
let newActiveTop = document.querySelector("#words .word.active").offsetTop;
|
||||
|
@ -528,12 +529,11 @@ function handleChar(char, charIndex) {
|
|||
if (!Config.showAllLines) TestUI.lineJump(currentTop);
|
||||
} else {
|
||||
TestLogic.input.current = TestLogic.input.current.slice(0, -1);
|
||||
TestUI.updateWordElement();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TestUI.updateWordElement();
|
||||
|
||||
//simulate space press in nospace funbox
|
||||
if (
|
||||
(Config.funbox === "nospace" &&
|
||||
|
|
Loading…
Reference in a new issue