mirror of https://github.com/ppy/osu
snap the slider duration in normal drag
This commit is contained in:
parent
0c6bee4033
commit
094b184191
|
@ -265,6 +265,8 @@ private void adjustLength(double proposedDistance, bool adjustVelocity)
|
|||
else
|
||||
{
|
||||
double minDistance = distanceSnapProvider?.GetBeatSnapDistanceAt(HitObject, false) * oldVelocityMultiplier ?? 1;
|
||||
// Add a small amount to the proposed distance to make it easier to snap to the full length of the slider.
|
||||
proposedDistance = distanceSnapProvider?.FindSnappedDistance(HitObject, (float)proposedDistance + 1) ?? proposedDistance;
|
||||
proposedDistance = MathHelper.Clamp(proposedDistance, minDistance, HitObject.Path.CalculatedDistance);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue