From 923fc228e9dbbe21e4223d914b3e206effdea14a Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 1 Sep 2016 15:32:13 +0900 Subject: [PATCH] Fix cursor horizontal position. --- osu.Game/Graphics/UserInterface/TextBox.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/TextBox.cs b/osu.Game/Graphics/UserInterface/TextBox.cs index 4ccf3c8295..5a064522c0 100644 --- a/osu.Game/Graphics/UserInterface/TextBox.cs +++ b/osu.Game/Graphics/UserInterface/TextBox.cs @@ -107,7 +107,7 @@ namespace osu.Game.Graphics.UserInterface float cursorPosEnd = getPositionAt(selectionEnd); - float cursorWidth = 1; + float cursorWidth = 2; if (selectionLength > 0) cursorWidth = getPositionAt(selectionRight) - cursorPos.X; @@ -127,7 +127,7 @@ namespace osu.Game.Graphics.UserInterface 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)