1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Make Back action go to the top of listing before exiting the changelog screen

This commit is contained in:
HoutarouOreki 2018-07-25 00:12:05 +02:00
parent d2b2c4c19b
commit a00f4e8178

View File

@ -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();