mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 12:00:10 +08:00
fixed caret pos
This commit is contained in:
parent
a0df1523ae
commit
480a1ffea9
1 changed files with 1 additions and 1 deletions
|
@ -1492,7 +1492,7 @@ function updateCaretPosition() {
|
|||
let newTop = 0;
|
||||
let newLeft = 0;
|
||||
|
||||
newTop = currentLetterPosTop - Math.round(letterHeight / 20);
|
||||
newTop = currentLetterPosTop - Math.round(letterHeight / 5);
|
||||
if (inputLen == 0) {
|
||||
newLeft = isLanguageLeftToRight
|
||||
? currentLetterPosLeft - caret.width() / 2
|
||||
|
|
Loading…
Reference in a new issue