mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:03:22 +08:00
Animate scroll for a better visual experience
This commit is contained in:
parent
087ca59ebb
commit
b04871f40a
@ -119,7 +119,7 @@ namespace osu.Game.Screens.Play.HUD
|
||||
if (requiresScroll && trackedScore != null)
|
||||
{
|
||||
float scrollTarget = scroll.GetChildPosInContent(trackedScore) + trackedScore.DrawHeight / 2 - scroll.DrawHeight / 2;
|
||||
scroll.ScrollTo(scrollTarget, false);
|
||||
scroll.ScrollTo(scrollTarget);
|
||||
}
|
||||
|
||||
const float panel_height = GameplayLeaderboardScore.PANEL_HEIGHT;
|
||||
|
Loading…
Reference in New Issue
Block a user