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:
parent
6eac5d03ad
commit
a04f4b76bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user