mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Selecting a mod now triggers on mouseup
This commit is contained in:
@ -147,7 +147,10 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
public virtual Mod SelectedMod => Mods.ElementAtOrDefault(selectedIndex);
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
||||
{
|
||||
// only trigger the event if we are inside the area of the button
|
||||
if (Contains(ToScreenSpace(state.Mouse.Position - Position)))
|
||||
{
|
||||
switch (args.Button)
|
||||
{
|
||||
@ -158,7 +161,7 @@ namespace osu.Game.Overlays.Mods
|
||||
SelectNext(-1);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user