mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 05:37:18 +09:00
only return true on Mclick
This commit is contained in:
parent
af6618a239
commit
27ea6102bc
@ -146,9 +146,10 @@ namespace osu.Game.Overlays.Chat
|
|||||||
|
|
||||||
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
||||||
{
|
{
|
||||||
if (args.Button == MouseButton.Middle)
|
var isMclick = args.Button == MouseButton.Middle;
|
||||||
|
if (isMclick)
|
||||||
closeButton.Action();
|
closeButton.Action();
|
||||||
return true;
|
return isMclick;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnHover(InputState state)
|
protected override bool OnHover(InputState state)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user