1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Always perform non-seeked scroll in the editor while audio is playing

This commit is contained in:
smoogipoo 2018-06-18 19:32:04 +09:00
parent ec81ed1c8d
commit 8c671f93fc

View File

@ -181,9 +181,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;
} }