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:
parent
867797a089
commit
4b6c139c3e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user