GRAPHICS: MACGUI: fix regression of scrolling cursor in mactext
This commit is contained in:
parent
9ef28b2acb
commit
d30e009eff
1 changed files with 1 additions and 1 deletions
|
@ -2115,7 +2115,7 @@ void MacText::updateCursorPos() {
|
|||
else if (_textAlignment == kTextAlignCenter)
|
||||
alignOffset = (_textMaxWidth / 2) - (getLineWidth(_cursorRow) / 2);
|
||||
|
||||
_cursorY = _textLines[_cursorRow].y;
|
||||
_cursorY = _textLines[_cursorRow].y - _scrollPos;
|
||||
_cursorX = getLineWidth(_cursorRow, false, _cursorCol) + alignOffset;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue