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:
commit
0d2d77f276
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user