1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Allow changing volume using alt when hovering scroll containers

This commit is contained in:
Joehu 2019-12-13 22:27:14 -08:00
parent 6eac5d03ad
commit a04f4b76bb

View File

@ -83,6 +83,13 @@ namespace osu.Game.Graphics.Containers
return base.OnDragEnd(e);
}
protected override bool OnScroll(ScrollEvent e)
{
if (e.AltPressed) return false;
return base.OnScroll(e);
}
protected override ScrollbarContainer CreateScrollbar(Direction direction) => new OsuScrollbar(direction);
protected class OsuScrollbar : ScrollbarContainer