mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
fixed strict space causing weird behaviour with stop on word. fixes #565
This commit is contained in:
parent
edf0904836
commit
72e5d257e0
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue