Browse Source

Update relative point animation

pull/6183/head
Max Katz 5 years ago
parent
commit
e8da78cd41
  1. 2
      src/Avalonia.Visuals/Animation/Animators/RelativePointAnimator.cs

2
src/Avalonia.Visuals/Animation/Animators/RelativePointAnimator.cs

@ -11,7 +11,7 @@
{
if (oldValue.Unit != newValue.Unit)
{
return progress >= 1 ? newValue : oldValue;
return progress >= 0.5 ? newValue : oldValue;
}
return new RelativePoint(s_pointAnimator.Interpolate(progress, oldValue.Point, newValue.Point), oldValue.Unit);

Loading…
Cancel
Save