1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:02:55 +08:00

Toolbar buttons should handle on click, not mouse down.

This commit is contained in:
Dean Herbert 2016-11-15 15:31:48 +09:00
parent 867797a089
commit 4b6c139c3e

View File

@ -127,7 +127,7 @@ namespace osu.Game.Overlays
Size = new Vector2(WIDTH + (DrawableText.IsVisible ? DrawableText.DrawSize.X : 0), 1);
}
protected override bool OnMouseDown(InputState state, MouseDownEventArgs e)
protected override bool OnClick(InputState state)
{
Action?.Invoke();
HoverBackground.FlashColour(Color4.White, 400);