mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
This adds the ability to Cancel the Animation via the Promise returned via a play command.
This commit is contained in:
@@ -88,7 +88,7 @@ export class Animation extends common.Animation implements definition.Animation
|
||||
private _cancelledAnimations: number;
|
||||
private _mergedPropertyAnimations: Array<common.PropertyAnimation>;
|
||||
|
||||
public play(): Promise<void> {
|
||||
public play(): definition.AnimationPromise {
|
||||
var animationFinishedPromise = super.play();
|
||||
this._finishedAnimations = 0;
|
||||
this._cancelledAnimations = 0;
|
||||
|
||||
Reference in New Issue
Block a user