Fix cursor horizontal position.

This commit is contained in:
Dean Herbert 2016-09-01 15:32:13 +09:00
parent a2fc339a45
commit 923fc228e9
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ protected override void UpdateLayout()
float cursorPosEnd = getPositionAt(selectionEnd);
float cursorWidth = 1;
float cursorWidth = 2;
if (selectionLength > 0)
cursorWidth = getPositionAt(selectionRight) - cursorPos.X;
@ -127,7 +127,7 @@ protected override void UpdateLayout()
if (HasFocus)
{
cursor.ClearTransformations();
cursor.MoveTo(cursorPos + new Vector2(2, 0), 60, EasingTypes.Out);
cursor.MoveTo(cursorPos, 60, EasingTypes.Out);
cursor.ScaleTo(new Vector2(cursorWidth, 1), 60, EasingTypes.Out);
if (selectionLength > 0)