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:
parent
2393ce5f51
commit
63a1686dfb
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user