1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 17:13:06 +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) protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{ {
var isMclick = args.Button == MouseButton.Middle; if (args.Button == MouseButton.Middle)
if (isMclick) {
closeButton.Action(); closeButton.Action();
return isMclick; return true;
}
return false;
} }
protected override bool OnHover(InputState state) protected override bool OnHover(InputState state)