Skip to content

Commit

Permalink
fix(tape mode): scrolling sometimes glitching out and not being smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Jul 28, 2024
1 parent 6554f0b commit cdb926e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/ts/test/test-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit cdb926e

Please sign in to comment.