From 23ea9787f071cd355cae6428f73b76107771ca21 Mon Sep 17 00:00:00 2001 From: 06wj <06wj@163.com> Date: Wed, 13 Feb 2019 17:40:13 +0800 Subject: [PATCH] fix: Tween reverse may error when first update --- src/tween/Tween.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tween/Tween.js b/src/tween/Tween.js index 96acc1f3..2e1cbe55 100644 --- a/src/tween/Tween.js +++ b/src/tween/Tween.js @@ -333,7 +333,7 @@ return Class.create(/** @lends Tween.prototype */{ ratio = ratio <= 0 ? 0 : ratio >= 1 ? 1 : ratio; var easeRatio = me.ease ? me.ease(ratio) : ratio; - if(me.reverse){ + if(me.reverse && me.isStart){ //backward if(me._reverseFlag < 0) { ratio = 1 - ratio;