mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
Change song select to only allow volume adjusting if alt is held while scrolling
This commit is contained in:
parent
2e4dc7c467
commit
de163b2bb5
@ -304,6 +304,16 @@ namespace osu.Game.Screens.Select
|
||||
modSelectOverlayRegistration = OverlayManager?.RegisterBlockingOverlay(ModSelect);
|
||||
}
|
||||
|
||||
protected override bool OnScroll(ScrollEvent e)
|
||||
{
|
||||
// Match stable behaviour of only alt-scroll adjusting volume.
|
||||
// Supporting scroll adjust without a modifier key just feels bad, since there are so many scrollable elements on the screen.
|
||||
if (!e.CurrentState.Keyboard.AltPressed)
|
||||
return true;
|
||||
|
||||
return base.OnScroll(e);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the buttons to be displayed in the footer.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user