Fix beat snap implementation being incorrect

This commit is contained in:
Dean Herbert
2020-01-28 12:48:24 +09:00
parent 01cf417569
commit 58654f28b6
5 changed files with 13 additions and 11 deletions

View File

@ -177,7 +177,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
public (Vector2 position, double time) GetSnappedPosition(Vector2 position, double time)
{
var targetTime = (position.X / Content.DrawWidth) * track.Length;
return (position, beatSnapProvider.SnapTime(targetTime, targetTime));
return (position, beatSnapProvider.SnapTime(targetTime));
}
public float GetBeatSnapDistanceAt(double referenceTime) => throw new NotImplementedException();