mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Merge pull request #18788 from peppy/editor-seek-constant-while-playing
Change editor seek-while-playing modifier to be BPM agnostic
This commit is contained in:
commit
7d988da2c7
@ -798,10 +798,11 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
if (trackPlaying)
|
||||
{
|
||||
// generally users are not looking to perform tiny seeks when the track is playing,
|
||||
// so seeks should always be by one full beat, bypassing the beatDivisor.
|
||||
// generally users are not looking to perform tiny seeks when the track is playing.
|
||||
// this multiplication undoes the division that will be applied in the underlying seek operation.
|
||||
amount *= beatDivisor.Value;
|
||||
// scale by BPM to keep the seek amount constant across all BPMs.
|
||||
var timingPoint = editorBeatmap.ControlPointInfo.TimingPointAt(clock.CurrentTimeAccurate);
|
||||
amount *= beatDivisor.Value * (timingPoint.BPM / 120);
|
||||
}
|
||||
|
||||
if (direction < 1)
|
||||
|
Loading…
Reference in New Issue
Block a user