Merge pull request #6020 from peppy/volume-at-pause

Allow global actions to propagate through pause screen
This commit is contained in:
Dan Balasescu 2019-09-06 20:03:52 +09:00 committed by GitHub
commit f51ff55328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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