1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 01:00:00 +08:00

Merge pull request #21377 from peppy/song-select-alt-scroll-only

Change song select to only allow volume adjusting if alt is held while scrolling
This commit is contained in:
Bartłomiej Dach
2022-11-22 19:00:04 +01:00
committed by GitHub
Unverified
+10
View File
@@ -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>