1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 06:32:55 +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
commit 0d2d77f276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,6 +304,16 @@ namespace osu.Game.Screens.Select
modSelectOverlayRegistration = OverlayManager?.RegisterBlockingOverlay(ModSelect); 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> /// <summary>
/// Creates the buttons to be displayed in the footer. /// Creates the buttons to be displayed in the footer.
/// </summary> /// </summary>