1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 16:42:57 +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
parent 318549ec33
commit b016d53b85
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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