mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Add slight easing to marker movements
This commit is contained in:
parent
fbc92bfa01
commit
c86ddb7ee3
@ -62,7 +62,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.BeatSnap
|
||||
updatePosition();
|
||||
}
|
||||
|
||||
private void updatePosition() => marker.X = getTickPosition(Array.IndexOf(availableDivisors, Divisor.Value));
|
||||
private void updatePosition() => marker.MoveToX(getTickPosition(Array.IndexOf(availableDivisors, Divisor.Value)), 100, Easing.OutQuint);
|
||||
|
||||
private float getTickPosition(int index) => (index + 1) * tickSpacing;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user