From a1fe6e9d00688755e8d001e9847b7fbd50c3ab48 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 5 Oct 2024 23:23:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20CameraAnimation=E7=9A=84=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E5=9E=83=E5=9C=BE=E5=9B=9E=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/render/camera.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/render/camera.ts b/src/core/render/camera.ts index c1e3ff4..b684e80 100644 --- a/src/core/render/camera.ts +++ b/src/core/render/camera.ts @@ -597,5 +597,9 @@ export class CameraAnimation extends EventEmitter { destroy() { this.camera.binded.removeTicker(this.delegation); this.camera.stopAllAnimates(); + this.animateMap.forEach(v => { + v.animation.ticker.destroy(); + }); + this.animateMap.clear(); } }