mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Merge pull request #6020 from peppy/volume-at-pause
Allow global actions to propagate through pause screen
This commit is contained in:
commit
f51ff55328
@ -313,5 +313,22 @@ namespace osu.Game.Screens.Play
|
||||
return base.OnMouseMove(e);
|
||||
}
|
||||
}
|
||||
|
||||
[Resolved]
|
||||
private GlobalActionContainer globalAction { get; set; }
|
||||
|
||||
protected override bool Handle(UIEvent e)
|
||||
{
|
||||
switch (e)
|
||||
{
|
||||
case ScrollEvent _:
|
||||
if (ReceivePositionalInputAt(e.ScreenSpaceMousePosition))
|
||||
return globalAction.TriggerEvent(e);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return base.Handle(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user