Merge pull request #107 from TheSumm/master
Fix: Scrolling up over empty lines.
This commit is contained in:
commit
0e80d1bb0d
|
@ -129,7 +129,7 @@ function onGameEditText(id, itemId, maxLength, text, writter, time)
|
|||
textEdit:setCursorPos(getCursorPosByNewLine(textEdit:getText(), _next + delta - 1))
|
||||
if writeable then textEdit:setCursorPos(getCursorPosByNewLine(textEdit:getText(), line + delta)) end
|
||||
else
|
||||
textEdit:setCursorPos(getCursorPosByNewLine(textEdit:getText(), _prev + delta + 1))
|
||||
textEdit:setCursorPos(getCursorPosByNewLine(textEdit:getText(), _prev + delta + 1) - 1)
|
||||
if writeable then textEdit:setCursorPos(getCursorPosByNewLine(textEdit:getText(), line + delta)) end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue