mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
fix the issue that an iOS animation promise may never be resolved nor rejected
This commit is contained in:
@ -96,7 +96,7 @@ export class Animation extends common.Animation implements definition.Animation
|
||||
that._finishedAnimations++;
|
||||
}
|
||||
|
||||
if (that._cancelledAnimations === that._mergedPropertyAnimations.length) {
|
||||
if (that._cancelledAnimations > 0 && (that._cancelledAnimations + that._finishedAnimations) === that._mergedPropertyAnimations.length) {
|
||||
trace.write(that._cancelledAnimations + " animations cancelled.", trace.categories.Animation);
|
||||
that._rejectAnimationFinishedPromise();
|
||||
}
|
||||
|
Reference in New Issue
Block a user