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

Change editor seek-while-playing modifier to be BPM agnostic

This commit is contained in:
Dean Herbert 2022-06-21 13:07:50 +09:00
parent 3e273c17b2
commit c61e90d768

View File

@ -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)