Merge pull request #2008 from 2youyou2/master

minor fix for animation
This commit is contained in:
Jare Guo
2017-09-28 02:58:44 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ function initClipData (root, state) {
if (i === 1) {
lastRatioDif = currRatioDif;
}
else if (Math.abs(currRatioDif - lastRatioDif) > Math.EPSILON) {
else if (Math.abs(currRatioDif - lastRatioDif) > EPSILON) {
canOptimize = false;
break;
}
+1 -1
View File
@@ -110,7 +110,7 @@ prototype.stop = function () {
* @method pause
*/
prototype.pause = function () {
if (this._isPlaying) {
if (this._isPlaying && !this._isPaused) {
this._isPaused = true;
this.onPause();
}