| Index: sky/sdk/lib/animation/animation_performance.dart
|
| diff --git a/sky/sdk/lib/animation/animation_performance.dart b/sky/sdk/lib/animation/animation_performance.dart
|
| index b857ee957efe4413bf11901f537ed5bfeb9f8348..7b7a96e5f70b19d7527c079bd17f747ce8990dc9 100644
|
| --- a/sky/sdk/lib/animation/animation_performance.dart
|
| +++ b/sky/sdk/lib/animation/animation_performance.dart
|
| @@ -22,8 +22,12 @@ class AnimatedType<T extends dynamic> extends AnimatedVariable {
|
|
|
| void setFraction(double t) {
|
| if (end != null) {
|
| - // TODO(mpcomplete): Reverse the timeline and curve.
|
| - value = begin + (end - begin) * curve.transform(t);
|
| + if (t == 1.0) {
|
| + value = end;
|
| + } else {
|
| + // TODO(mpcomplete): Reverse the timeline and curve.
|
| + value = begin + (end - begin) * curve.transform(t);
|
| + }
|
| }
|
| }
|
|
|
|
|