mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
i think this fixes the caret?
This commit is contained in:
parent
0eac486bd6
commit
fcbba25e55
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue