1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 23:40:45 +08:00

Fix TwoLayerButton not capturing MouseDown events

Caused clicks to pass through the skip button to the progress bar.
This commit is contained in:
Dean Herbert
2017-05-16 17:57:40 +09:00
Unverified
parent 318549ec33
commit b016d53b85
@@ -216,6 +216,11 @@ namespace osu.Game.Graphics.UserInterface
});
}
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
{
return true;
}
protected override bool OnClick(InputState state)
{
var flash = new Box