fix(tape mode): scrolling sometimes glitching out and not being smooth

This commit is contained in:
Miodec 2024-07-28 16:34:56 +02:00
parent 6554f0b2a9
commit cdb926e123

View file

@ -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;
}
}