From b9873a1b1b8fb7bc969debd8bd9ef6421ce5c6d4 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Thu, 20 Oct 2016 21:40:10 +0200 Subject: [PATCH] [C] fix TranslateTo for easing going outside of (0,1) (#414) --- Xamarin.Forms.Core/ViewExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Forms.Core/ViewExtensions.cs b/Xamarin.Forms.Core/ViewExtensions.cs index 14a7086..c61a3cf 100644 --- a/Xamarin.Forms.Core/ViewExtensions.cs +++ b/Xamarin.Forms.Core/ViewExtensions.cs @@ -188,7 +188,7 @@ namespace Xamarin.Forms if (weakView.TryGetTarget(out v)) v.TranslationY = f; }; - new Animation { { 0, 1, new Animation(translateX, view.TranslationX, x) }, { 0, 1, new Animation(translateY, view.TranslationY, y) } }.Commit(view, "TranslateTo", 16, length, easing, + new Animation { { 0, 1, new Animation(translateX, view.TranslationX, x, easing: easing) }, { 0, 1, new Animation(translateY, view.TranslationY, y, easing:easing) } }.Commit(view, "TranslateTo", 16, length, null, (f, a) => tcs.SetResult(a)); return tcs.Task; -- 2.7.4