1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08: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:
Dan Balasescu 2020-11-26 15:37:57 +09:00 committed by GitHub
commit a0e47ae13f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,6 +375,9 @@ namespace osu.Game.Screens.Edit
protected override bool OnScroll(ScrollEvent e)
{
if (e.ControlPressed || e.AltPressed || e.SuperPressed)
return false;
const double precision = 1;
double scrollComponent = e.ScrollDelta.X + e.ScrollDelta.Y;