Skip to content

Commit da01d29

Browse files
committed
fix(caret): incorrect position in blind mode
1 parent 2292200 commit da01d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/ts/utils/caret.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ export class Caret {
405405
options.isDirectionReversed
406406
);
407407

408-
//if the letter is not visible, use the closest visible letter (but only for full width carets)
408+
//if the letter is not visible, use the closest visible letter
409409
const isLetterVisible = options.letter.offsetWidth > 0;
410-
if (!isLetterVisible && this.isFullWidth()) {
410+
if (!isLetterVisible) {
411411
const letters = options.word.querySelectorAll<HTMLElement>("letter");
412412
if (letters.length === 0) {
413413
throw new Error("Caret getLeftTopWidth: no letters found in word");

0 commit comments

Comments
 (0)