From ffe8518d5fdc0326eb6772c5806906e8d80449fb Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Mon, 4 Sep 2023 16:37:35 +0200 Subject: [PATCH] Attempting fix --- .../animation/animators/waapi/create-accelerated-animation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/framer-motion/src/animation/animators/waapi/create-accelerated-animation.ts b/packages/framer-motion/src/animation/animators/waapi/create-accelerated-animation.ts index e8c923acb9..553ab60e38 100644 --- a/packages/framer-motion/src/animation/animators/waapi/create-accelerated-animation.ts +++ b/packages/framer-motion/src/animation/animators/waapi/create-accelerated-animation.ts @@ -142,10 +142,10 @@ export function createAcceleratedAnimation( * For synching handoff animations with the new Motion animation we want * to ensure startTime is synchronously set. */ - if (options.syncStart) { + if (options.syncStart && document.timeline) { animation.startTime = frameData.isProcessing ? frameData.timestamp - : performance.now() + : document.timeline.currentTime } const cancelAnimation = () => animation.cancel()