mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 12:00:10 +08:00
fixed caret jumping down without scrolling the line in stop on word mode
This commit is contained in:
parent
ad6a3a3677
commit
cccb670948
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue