From b016d53b85e94c1088652c97b99cdca6dfe79f74 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 16 May 2017 17:57:40 +0900 Subject: [PATCH] Fix TwoLayerButton not capturing MouseDown events Caused clicks to pass through the skip button to the progress bar. --- osu.Game/Graphics/UserInterface/TwoLayerButton.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osu.Game/Graphics/UserInterface/TwoLayerButton.cs b/osu.Game/Graphics/UserInterface/TwoLayerButton.cs index 601970e36d..237aaa44a6 100644 --- a/osu.Game/Graphics/UserInterface/TwoLayerButton.cs +++ b/osu.Game/Graphics/UserInterface/TwoLayerButton.cs @@ -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