fix: CameraAnimation的动画垃圾回收

This commit is contained in:
unanmed 2024-10-05 23:23:18 +08:00
parent 886d1178dd
commit a1fe6e9d00

View File

@ -597,5 +597,9 @@ export class CameraAnimation extends EventEmitter<CameraAnimationEvent> {
destroy() { destroy() {
this.camera.binded.removeTicker(this.delegation); this.camera.binded.removeTicker(this.delegation);
this.camera.stopAllAnimates(); this.camera.stopAllAnimates();
this.animateMap.forEach(v => {
v.animation.ticker.destroy();
});
this.animateMap.clear();
} }
} }