Fix mod buttons being selected when drag scrolling overlay (#7099)

Fix mod buttons being selected when drag scrolling overlay
This commit is contained in:
Dean Herbert 2019-12-09 12:24:48 +09:00 committed by GitHub
commit 003eef8595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -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>