1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 00:02:57 +08:00

Merge pull request #22168 from Joehuu/fix-mute-button-closing-overlays

Fix mute button not blocking outside overlay closing presses
This commit is contained in:
Dean Herbert 2023-01-13 12:35:03 +09:00 committed by GitHub
commit 6daa37bd3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,5 +88,13 @@ namespace osu.Game.Overlays.Volume
{
Content.TransformTo<Container<Drawable>, ColourInfo>("BorderColour", unhoveredColour, 500, Easing.OutQuint);
}
protected override bool OnMouseDown(MouseDownEvent e)
{
base.OnMouseDown(e);
// Block mouse down to avoid dismissing overlays sitting behind the mute button
return true;
}
}
}