mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
Fix editor clock not always remaining stopped when dragging timeline
Closes https://github.com/ppy/osu/issues/10461.
This commit is contained in:
parent
2d1db6a22d
commit
34aa59f237
@ -165,6 +165,11 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
if (!track.IsLoaded || track.Length == 0)
|
||||
return;
|
||||
|
||||
// covers the case where the user starts playback after a drag is in progress.
|
||||
// we want to ensure the clock is always stopped during drags to avoid weird audio playback.
|
||||
if (handlingDragInput)
|
||||
editorClock.Stop();
|
||||
|
||||
ScrollTo((float)(editorClock.CurrentTime / track.Length) * Content.DrawWidth, false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user