mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user