mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Fix cursor horizontal position.
This commit is contained in:
parent
a2fc339a45
commit
923fc228e9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user