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:
parent
32b40bdabf
commit
246479bf34
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user