Merge pull request #107 from TheSumm/master

Fix: Scrolling up over empty lines.
This commit is contained in:
Eduardo Bart 2012-10-03 09:19:02 -07:00
commit 0e80d1bb0d
1 changed files with 1 additions and 1 deletions

View File

@ -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