diff --git a/src/js/input-controller.js b/src/js/input-controller.js index 282d4d014..6c513eda4 100644 --- a/src/js/input-controller.js +++ b/src/js/input-controller.js @@ -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" &&