mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
Fixed: If an Animation instance is played more than once, the same promise is resolved each time leading to unexpected results. #774
This commit is contained in:
@ -1099,7 +1099,7 @@ export class View extends proxy.ProxyObject implements definition.View {
|
||||
}
|
||||
|
||||
public animate(animation: animationModule.AnimationDefinition): Promise<void> {
|
||||
return this.createAnimation(animation).play().finished;
|
||||
return this.createAnimation(animation).play();
|
||||
}
|
||||
|
||||
public createAnimation(animation: animationModule.AnimationDefinition): animationModule.Animation {
|
||||
|
Reference in New Issue
Block a user