Skip to content

Commit

Permalink
fix: Tween reverse may error when first update
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Feb 13, 2019
1 parent f625f97 commit 23ea978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tween/Tween.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 23ea978

Please sign in to comment.