1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 10:43:04 +08:00

Fix mod buttons being selected when drag scrolling overlay

This commit is contained in:
Joehu 2019-12-08 08:55:45 -08:00
parent 4d4e17f7c0
commit 8956768fe0

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,15 @@ namespace osu.Game.Overlays.Mods
return true;
}
protected override bool OnClick(ClickEvent e)
{
scaleContainer.ScaleTo(1, 500, Easing.OutElastic);
SelectNext(1);
return base.OnClick(e);
}
/// <summary>
/// Select the next available mod in a specified direction.
/// </summary>