1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

only return true on Mclick

This commit is contained in:
LastExceed 2018-09-18 08:07:19 +02:00
parent af6618a239
commit 27ea6102bc

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)