mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Always perform non-seeked scroll in the editor while audio is playing
This commit is contained in:
parent
ec81ed1c8d
commit
8c671f93fc
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user