Skip to content

Commit 83bcf26

Browse files
authored
Merge pull request #4311 from Sergio0694/bugfix/xaml-animation-glitches
Fixed incorrect default easing for XAML animation types
2 parents 84adf91 + 272eee5 commit 83bcf26

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)