mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-28 17:45:50 +08:00
fix: hide extra letters causing caret to go to the start of the active word
This commit is contained in:
parent
2af5879f23
commit
cf74cd7cbf
1 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,10 @@ function getTargetPositionLeft(
|
|||
fullWidthOffset;
|
||||
}
|
||||
} else {
|
||||
if (Config.blindMode && inputLenLongerThanWordLen) {
|
||||
if (
|
||||
(Config.blindMode || Config.hideExtraLetters) &&
|
||||
inputLenLongerThanWordLen
|
||||
) {
|
||||
result = lastWordLetter.offsetLeft + lastWordLetter.offsetWidth;
|
||||
} else if (currentLetter !== undefined) {
|
||||
result = currentLetter.offsetLeft;
|
||||
|
|
Loading…
Add table
Reference in a new issue