From 2dc44749a97d7796b889ae937ec9990e68cfc614 Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Thu, 7 Dec 2023 16:55:37 +0100 Subject: [PATCH] Fixing needless cancel --- .../framer-motion/src/animation/interfaces/motion-value.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/framer-motion/src/animation/interfaces/motion-value.ts b/packages/framer-motion/src/animation/interfaces/motion-value.ts index b384d821dc..78b719df8c 100644 --- a/packages/framer-motion/src/animation/interfaces/motion-value.ts +++ b/packages/framer-motion/src/animation/interfaces/motion-value.ts @@ -115,13 +115,6 @@ export const animateMotionValue = ( ) } - /** - * If we have an optimised animation running for this value, cancel it. - */ - value.owner?.cancelOptimisedAnimation?.[ - transformProps.has(valueName) ? "transform" : valueName - ]?.() - /** * Animate via WAAPI if possible. */