mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00: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