fix(tape mode): not scrolling for extra letters

This commit is contained in:
Miodec 2024-07-27 13:45:52 +02:00
parent f96b8efdaa
commit c1afd13362

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 (letter.classList.contains("extra")) return;
if (Config.blindMode && letter.classList.contains("extra")) return;
currentWordWidth += $(letter).outerWidth(true) ?? 0;
}
}