1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 12:53:11 +08:00

Cleanup, use similar code to everywhere else

This commit is contained in:
Dan Balasescu 2018-09-18 15:27:21 +09:00 committed by GitHub
parent 27ea6102bc
commit ad31962643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,10 +146,13 @@ namespace osu.Game.Overlays.Chat
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
var isMclick = args.Button == MouseButton.Middle;
if (isMclick)
if (args.Button == MouseButton.Middle)
{
closeButton.Action();
return isMclick;
return true;
}
return false;
}
protected override bool OnHover(InputState state)