1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 22:17:46 +08:00

Fix snap extent not working correctly on sliders (and providing incorrect time values)

This commit is contained in:
Dean Herbert 2022-05-06 15:54:37 +09:00
parent 32b40bdabf
commit 246479bf34

View File

@ -89,7 +89,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (snappedTime > LatestEndTime)
{
snappedDistance = SnapProvider.DurationToDistance(ReferenceObject, LatestEndTime.Value - ReferenceObject.StartTime);
snappedDistance = SnapProvider.DurationToDistance(ReferenceObject, LatestEndTime.Value - ReferenceObject.GetEndTime());
snappedTime = StartTime + SnapProvider.DistanceToDuration(ReferenceObject, snappedDistance);
}
// The multiplier can then be reapplied to the final position.