mirror of https://github.com/ppy/osu
Fix cursor horizontal position.
This commit is contained in:
parent
a2fc339a45
commit
923fc228e9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue