Fix click sounds potentially not working

This commit is contained in:
Joseph Madamba
2023-02-02 23:54:57 -08:00
parent 77569058cb
commit f27bf3ca20

View File

@ -44,7 +44,7 @@ namespace osu.Game.Graphics.UserInterface
protected override bool OnClick(ClickEvent e)
{
if (buttons.Contains(e.Button) && Contains(e.ScreenSpaceMousePosition))
if (buttons.Contains(e.Button))
{
var channel = Enabled.Value ? sampleClick?.GetChannel() : sampleClickDisabled?.GetChannel();