Skip to content

Commit b57da01

Browse files
committed
Fixed incorrect timed keyframe expression
1 parent d3426fa commit b57da01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp.UI.Animations/Builders/TimedKeyFrameAnimationBuilder{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public bool TryInsertExpressionKeyFrame(KeyFrameAnimation animation, TimeSpan du
172172
[MethodImpl(MethodImplOptions.AggressiveInlining)]
173173
public float GetNormalizedProgress(TimeSpan duration)
174174
{
175-
return (float)Math.Clamp(this.progress.TotalMilliseconds * 100 / duration.TotalMilliseconds, 0, 1);
175+
return (float)Math.Clamp(this.progress.TotalMilliseconds / duration.TotalMilliseconds, 0, 1);
176176
}
177177

178178
/// <inheritdoc/>

0 commit comments

Comments
 (0)