1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-06 18:44:06 +08:00

ToolbarButtons should still handle MouseDown events.

This commit is contained in:
Dean Herbert
2016-11-15 20:35:17 +09:00
Unverified
parent 566e09083f
commit a2d505af78
+2
View File
@@ -127,6 +127,8 @@ namespace osu.Game.Overlays
Size = new Vector2(WIDTH + (DrawableText.IsVisible ? DrawableText.DrawSize.X : 0), 1);
}
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
protected override bool OnClick(InputState state)
{
Action?.Invoke();