mirror of
https://github.com/ppy/osu.git
synced 2026-05-20 03:19:52 +08:00
Fix cursor horizontal position.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user