Skip to content

Commit 272eee5

Browse files
committed
Fixed incorrect default easing for XAML animation types
1 parent 84adf91 commit 272eee5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/Animation{TValue,TKeyFrame}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ protected INormalizedKeyFrameAnimationBuilder<TKeyFrame> AppendToBuilder(INormal
142142

143143
if (from is not null)
144144
{
145-
builder.KeyFrame(0.0, from.Value, default, default);
145+
builder.KeyFrame(0.0, from.Value);
146146
}
147147

148148
return builder;

Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Abstract/ImplicitAnimation{TValue,TKeyFrame}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public CompositionAnimation GetAnimation(UIElement element, out string? target)
7474

7575
if (from is not null)
7676
{
77-
builder.KeyFrame(0.0, from.Value, default, default);
77+
builder.KeyFrame(0.0, from.Value, DefaultEasingType, DefaultEasingMode);
7878
}
7979

8080
foreach (var keyFrame in KeyFrames)

0 commit comments

Comments
 (0)