i think this fixes the caret?

This commit is contained in:
Miodec 2021-06-20 15:35:45 +01:00
parent 0eac486bd6
commit fcbba25e55

View file

@ -56,7 +56,8 @@ export async function updatePosition() {
}
if (Config.mode != "zen" && $(currentLetter).length == 0) return;
const isLanguageLeftToRight = await Misc.getCurrentLanguage().leftToRight;
const currentLanguage = await Misc.getCurrentLanguage();
const isLanguageLeftToRight = currentLanguage.leftToRight;
let currentLetterPosLeft = isLanguageLeftToRight
? currentLetter.offsetLeft
: currentLetter.offsetLeft + $(currentLetter).width();