mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-01-31 02:50:03 +08:00
fix(caret): block width going down to 0 when typing with blind mode on
This commit is contained in:
parent
799902949b
commit
8d9875f4eb
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ export async function updatePosition(noAnim = false): Promise<void> {
|
|||
Config.fontSize * Numbers.convertRemToPixels(1);
|
||||
|
||||
const letterWidth =
|
||||
currentLetter?.offsetWidth ??
|
||||
previousLetter?.offsetWidth ??
|
||||
currentLetter?.offsetWidth ||
|
||||
previousLetter?.offsetWidth ||
|
||||
lastWordLetter?.offsetWidth;
|
||||
|
||||
const diff = letterHeight - caret.offsetHeight;
|
||||
|
|
Loading…
Reference in a new issue