1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-16 16:17:19 +08:00

Allow global actions to propagate through pause screen

This commit is contained in:
Dean Herbert 2019-09-06 17:17:30 +09:00
parent e5c3a906d7
commit 88d0756107

View File

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