1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 02:49:53 +08:00

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
Unverified
+7 -4
View File
@@ -167,10 +167,6 @@ namespace osu.Game.Overlays.Mods
{
switch (e.Button)
{
case MouseButton.Left:
SelectNext(1);
break;
case MouseButton.Right:
SelectNext(-1);
break;
@@ -180,6 +176,13 @@ namespace osu.Game.Overlays.Mods
return true;
}
protected override bool OnClick(ClickEvent e)
{
SelectNext(1);
return true;
}
/// <summary>
/// Select the next available mod in a specified direction.
/// </summary>