1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:47:29 +08:00

Merge pull request #2828 from smoogipoo/improve-editor-scrolling

Always perform non-seeked scroll in the editor while audio is playing
This commit is contained in:
Dean Herbert 2018-06-21 17:24:15 +09:00 committed by GitHub
commit 5c63b3ddac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,9 +185,9 @@ namespace osu.Game.Screens.Edit
protected override bool OnScroll(InputState state) protected override bool OnScroll(InputState state)
{ {
if (state.Mouse.ScrollDelta.X + state.Mouse.ScrollDelta.Y > 0) if (state.Mouse.ScrollDelta.X + state.Mouse.ScrollDelta.Y > 0)
clock.SeekBackward(true); clock.SeekBackward(!clock.IsRunning);
else else
clock.SeekForward(true); clock.SeekForward(!clock.IsRunning);
return true; return true;
} }