mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-24 23:04:00 +08:00
using last letter in word node list when input is longer than ui word
closes #3558
This commit is contained in:
parent
0797b5cfb7
commit
ccc5badb49
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ export async function updatePosition(): Promise<void> {
|
|||
] as HTMLElement;
|
||||
|
||||
const previousLetter: HTMLElement = currentWordNodeList[
|
||||
currentLetterIndex - 1
|
||||
Math.min(currentLetterIndex - 1, currentWordNodeList.length - 1)
|
||||
] as HTMLElement;
|
||||
|
||||
const currentLanguage = await Misc.getCurrentLanguage(Config.language);
|
||||
|
|
Loading…
Reference in a new issue