From 2ced138e9e0dd60c93236b3f6b20c498b849f79b Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Wed, 24 Jan 2024 09:41:01 +0100 Subject: [PATCH] Fixing layout animations with transformTemplate (#2499) * Fixing layout animations with transformTemplate * Updating fix * Fix --- .../framer-motion/src/projection/node/create-projection-node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framer-motion/src/projection/node/create-projection-node.ts b/packages/framer-motion/src/projection/node/create-projection-node.ts index 6bee978361..4eb8bc3a3f 100644 --- a/packages/framer-motion/src/projection/node/create-projection-node.ts +++ b/packages/framer-motion/src/projection/node/create-projection-node.ts @@ -763,7 +763,6 @@ export function createProjectionNode({ const prevLayout = this.layout this.layout = this.measure(false) - this.layoutCorrected = createBox() this.isLayoutDirty = false this.projectionDelta = undefined @@ -1282,6 +1281,7 @@ export function createProjectionNode({ (this.treeScale.x !== 1 || this.treeScale.y !== 1) ) { lead.target = lead.layout.layoutBox + lead.targetWithTransforms = createBox() } const { target } = lead