mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 04:57:38 +09: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);
|
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 override ScrollbarContainer CreateScrollbar(Direction direction) => new OsuScrollbar(direction);
|
||||||
|
|
||||||
protected class OsuScrollbar : ScrollbarContainer
|
protected class OsuScrollbar : ScrollbarContainer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user