From 5d23fcbf54ddfac67cba68edefa263cd11d91e08 Mon Sep 17 00:00:00 2001 From: Hardy--Lee Date: Fri, 6 Feb 2026 14:36:58 +0800 Subject: [PATCH] fix: timeline animation error --- .../src/Core/controller/stage/pixi/animations/timeline.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts b/packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts index 69ac9d5bc..f0b7198b3 100644 --- a/packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts +++ b/packages/webgal/src/Core/controller/stage/pixi/animations/timeline.ts @@ -41,8 +41,8 @@ export function generateTimelineObj( } const container = target?.pixiContainer; let animateInstance: ReturnType | null = null; - // 只有有 duration 的时候才有动画 - if (duration > 0) { + // 只有有 duration 且 timeline 长度大于 1 的时候才有动画 + if (duration > 0 && timeline.length > 1) { animateInstance = popmotion.animate({ to: values, offset: times,