mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Make Back action go to the top of listing before exiting the changelog screen
This commit is contained in:
parent
d2b2c4c19b
commit
a00f4e8178
@ -132,7 +132,15 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
case GlobalAction.Back:
|
||||
if (isAtListing)
|
||||
State = Visibility.Hidden;
|
||||
{
|
||||
if (scroll.Current > scroll.GetChildPosInContent(listing))
|
||||
{
|
||||
scroll.ScrollTo(0);
|
||||
sampleBack?.Play();
|
||||
}
|
||||
else
|
||||
State = Visibility.Hidden;
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowListing();
|
||||
|
Loading…
Reference in New Issue
Block a user