fixed strict space causing weird behaviour with stop on word. fixes #565

This commit is contained in:
Jack 2020-11-10 17:51:55 +00:00
parent edf0904836
commit 72e5d257e0

View file

@ -4659,9 +4659,9 @@ $(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;
}
// if (config.stopOnError != "off") {
// if (currentWord !== currentInput) return;
// }
let currentTop = Math.floor(
document.querySelectorAll("#words .word")[currentWordElementIndex]