mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
fix(tape mode): scrolling sometimes glitching out and not being smooth
This commit is contained in:
parent
6554f0b2a9
commit
cdb926e123
|
@ -950,7 +950,7 @@ export function scrollTape(): void {
|
|||
if (!letters) return;
|
||||
for (let i = 0; i < TestInput.input.current.length; i++) {
|
||||
const letter = letters[i] as HTMLElement;
|
||||
if (Config.blindMode && letter.classList.contains("extra")) return;
|
||||
if (Config.blindMode && letter.classList.contains("extra")) continue;
|
||||
currentWordWidth += $(letter).outerWidth(true) ?? 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue