diff --git a/public/js/script.js b/public/js/script.js index 39112f0bc..868af6cee 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -4908,6 +4908,10 @@ $(document).keydown((event) => { if (!config.showAllLines || config.mode == "time") { // let currentTop = Math.floor($($("#words .word")[currentWordIndex]).position().top); // let nextTop = Math.floor($($("#words .word")[currentWordIndex + 1]).position().top); + if (config.stopOnError != "off") { + if (currentWord !== currentInput) return; + } + let currentTop = Math.floor( document.querySelectorAll("#words .word")[currentWordElementIndex] .offsetTop