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