1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 02:33:20 +08:00

Scroll to screen middle

This commit is contained in:
Endrik Tombak 2020-04-12 12:42:52 +03:00
parent 2393ce5f51
commit 63a1686dfb

View File

@ -632,7 +632,7 @@ namespace osu.Game.Screens.Select
case DrawableCarouselBeatmap beatmap:
{
if (beatmap.Item.State.Value == CarouselItemState.Selected)
scrollTarget = currentY + beatmap.DrawHeight / 2 - DrawHeight / 2;
scrollTarget = currentY + beatmap.DrawHeight / 2 - (Parent.DrawHeight / 2 - Parent.Padding.Top);
void performMove(float y, float? startY = null)
{