1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +08:00

Switched the implementation to set the blockInput flag for the BeatmapMetadataDisplay's LoadingLayer. This prevents the UIEvents from being being handled in this case without modifying the class

This commit is contained in:
Rovearix 2023-03-13 08:07:55 -04:00
parent ba728bdab1
commit 9ac9287dbd
2 changed files with 1 additions and 5 deletions

View File

@ -69,10 +69,6 @@ namespace osu.Game.Graphics.UserInterface
// note that this will not work well if touch handling elements are beneath this loading layer (something to consider for the future).
case TouchEvent:
return false;
// blocking drag events to prevent unintended ui pausing while loading a beat map (see https://github.com/ppy/osu/issues/22657)
case DragStartEvent:
return false;
}
return true;

View File

@ -114,7 +114,7 @@ namespace osu.Game.Screens.Play
Anchor = Anchor.Centre,
FillMode = FillMode.Fill,
},
loading = new LoadingLayer(true)
loading = new LoadingLayer(dimBackground: true, blockInput: false)
}
},
versionFlow = new FillFlowContainer