mirror of
https://github.com/ppy/osu.git
synced 2025-02-11 19:42:55 +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:
commit
6daa37bd3e
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user