1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00

Interpolate to tracking position on from Initial button state

This commit is contained in:
David Zhao 2019-05-17 12:21:34 +09:00
parent fcffad6553
commit b7aed0a014

View File

@ -332,7 +332,8 @@ namespace osu.Game.Screens.Menu
break; break;
case ButtonSystemState.EnteringMode: case ButtonSystemState.EnteringMode:
logoTrackingContainer.StartTracking(logo, 400, Easing.InSine); // When coming from the Initial (untracked) state, interpolate to the tracking position over a brief duration instead of tracking immediately.
logoTrackingContainer.StartTracking(logo, lastState == ButtonSystemState.Initial ? 400 : 0, Easing.InSine);
break; break;
} }
} }