mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Fix animations crash
This commit is contained in:
@ -105,7 +105,9 @@ export class KeyframeAnimation {
|
|||||||
this._isPlaying = false;
|
this._isPlaying = false;
|
||||||
for (let i = this._nativeAnimations.length - 1; i >= 0; i--) {
|
for (let i = this._nativeAnimations.length - 1; i >= 0; i--) {
|
||||||
let animation = this._nativeAnimations[i];
|
let animation = this._nativeAnimations[i];
|
||||||
animation.cancel();
|
if (animation.isPlaying) {
|
||||||
|
animation.cancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this._rejectAnimationFinishedPromise();
|
this._rejectAnimationFinishedPromise();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user