diff --git a/src/main-api/Inspector.ts b/src/main-api/Inspector.ts index e83131a1..343e497e 100644 --- a/src/main-api/Inspector.ts +++ b/src/main-api/Inspector.ts @@ -311,13 +311,15 @@ export class Inspector { ): IAnimationController => { const animationController = originalAnimate.call(node, props, settings); - return { - ...animationController, - start: () => { - this.animateNode(div, props, settings); - return animationController.start(); - }, + const originalStart = + animationController.start.bind(animationController); + animationController.start = () => { + this.animateNode(div, props, settings); + + return originalStart(); }; + + return animationController; }, });