why ghost item latch is always false when read?? fixed using atomic vars

This commit is contained in:
minjaesong
2022-03-10 13:34:42 +09:00
parent ee80d460f2
commit d589b602ef
2 changed files with 16 additions and 13 deletions

View File

@@ -345,7 +345,6 @@ class UIItemTextLineInput(
textbuf.addAll(cursorX, codepoints)
cursorX += codepoints.size
currentTextLenPx = App.fontGame.getWidth(CodepointSequence(textbuf.subList(0, cursorX)))
println("cursorX now: $cursorX; w: $currentTextLenPx; wOld: $oldTextLenPx")
moveCursorForward(currentTextLenPx - oldTextLenPx)
oldTextLenPx = currentTextLenPx
}