fixed words jumping to the same line. closes #1940

This commit is contained in:
Jack 2021-10-03 22:55:50 +01:00
parent 30246f9f50
commit c81e1ef004

View file

@ -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" &&