mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:33:21 +08:00
Cleanup, use similar code to everywhere else
This commit is contained in:
parent
27ea6102bc
commit
ad31962643
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user