mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Merge pull request #10960 from peppy/fix-editor-volume-adjust
Fix volume not being adjustable in the editor using alt-scroll
This commit is contained in:
commit
a0e47ae13f
@ -375,6 +375,9 @@ namespace osu.Game.Screens.Edit
|
|||||||
|
|
||||||
protected override bool OnScroll(ScrollEvent e)
|
protected override bool OnScroll(ScrollEvent e)
|
||||||
{
|
{
|
||||||
|
if (e.ControlPressed || e.AltPressed || e.SuperPressed)
|
||||||
|
return false;
|
||||||
|
|
||||||
const double precision = 1;
|
const double precision = 1;
|
||||||
|
|
||||||
double scrollComponent = e.ScrollDelta.X + e.ScrollDelta.Y;
|
double scrollComponent = e.ScrollDelta.X + e.ScrollDelta.Y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user