mirror of
https://github.com/osukey/osukey.git
synced 2025-05-28 17:07:35 +09: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…
x
Reference in New Issue
Block a user