ソースを参照

Merge pull request #6088 from sebavan/FixyFixy

Fix animation limit value on reverse play
David Catuhe 6 年 前
コミット
2067fd2633
1 ファイル変更4 行追加1 行削除
  1. 4 1
      src/Animations/runtimeAnimation.ts

+ 4 - 1
src/Animations/runtimeAnimation.ts

@@ -455,9 +455,12 @@ export class RuntimeAnimation {
         this._previousDelay = delay;
         this._previousRatio = ratio;
 
-        if (((to > from && ratio >= range) || (from > to && ratio <= range)) && !loop) { // If we are out of range and not looping get back to caller
+        if ((to > from && ratio >= range) && !loop) { // If we are out of range and not looping get back to caller
             returnValue = false;
             highLimitValue = this._animation._getKeyValue(keys[keys.length - 1].value);
+        } else if ((from > to && ratio <= range) && !loop) {
+            returnValue = false;
+            highLimitValue = this._animation._getKeyValue(keys[0].value);
         } else {
             // Get max value if required