mirror of https://github.com/ppy/osu
Fix mod buttons being selected when drag scrolling overlay (#7099)
Fix mod buttons being selected when drag scrolling overlay
This commit is contained in:
commit
003eef8595
|
@ -167,10 +167,6 @@ protected override bool OnMouseUp(MouseUpEvent e)
|
|||
{
|
||||
switch (e.Button)
|
||||
{
|
||||
case MouseButton.Left:
|
||||
SelectNext(1);
|
||||
break;
|
||||
|
||||
case MouseButton.Right:
|
||||
SelectNext(-1);
|
||||
break;
|
||||
|
@ -180,6 +176,13 @@ protected override bool OnMouseUp(MouseUpEvent e)
|
|||
return true;
|
||||
}
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
SelectNext(1);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Select the next available mod in a specified direction.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue