1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 01:49:56 +08:00

only return true on Mclick

This commit is contained in:
LastExceed
2018-09-18 08:07:19 +02:00
Unverified
parent af6618a239
commit 27ea6102bc
+3 -2
View File
@@ -146,9 +146,10 @@ namespace osu.Game.Overlays.Chat
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
if (args.Button == MouseButton.Middle)
var isMclick = args.Button == MouseButton.Middle;
if (isMclick)
closeButton.Action();
return true;
return isMclick;
}
protected override bool OnHover(InputState state)