Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Mar 21, 2024
1 parent 524bae7 commit 45667a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
4 changes: 2 additions & 2 deletions packages/framer-motion/cypress/integration/layout-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1131,13 +1131,13 @@ describe("Shared layout: Measures rotated elements correctly when animation is i
.wait(50)
.get("#box")
.trigger("click")
.wait(20)
.wait(50)
.get("#box")
.should(([$box]: any) => {
boundingBox = $box.getBoundingClientRect()
})
.trigger("click")
.wait(20)
.wait(50)
.get("#box")
.should(([$box]: any) => {
expectBbox($box, boundingBox)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -754,12 +754,6 @@ export function createProjectionNode<I>({
if (this.snapshot || !this.instance) return

this.snapshot = this.measure()

console.log(
"snapshot",
this.snapshot.measuredBox,
this.instance?.style?.transform
)
}

updateLayout() {
Expand Down Expand Up @@ -1746,6 +1740,9 @@ export function createProjectionNode<I>({
// Put back all the values we reset
for (const key in resetValues) {
visualElement.setStaticValue(key, resetValues[key])
if (this.animationValues) {
this.animationValues[key] = resetValues[key]
}
}

// Schedule a render for the next frame. This ensures we won't visually
Expand Down Expand Up @@ -1800,12 +1797,6 @@ export function createProjectionNode<I>({
}

const valuesToRender = lead.animationValues || lead.latestValues
console.log(
lead === this,
lead.animationValues?.rotate,
lead.latestValues.rotate,
this.latestValues.rotate
)
this.applyTransformsToTarget()

styles.transform = buildProjectionTransform(
Expand Down
1 change: 0 additions & 1 deletion packages/framer-motion/src/render/VisualElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,6 @@ export abstract class VisualElement<
notifyUpdate = () => this.notify("Update", this.latestValues)

triggerBuild() {
console.log("building values", this.latestValues)
this.build(
this.renderState,
this.latestValues,
Expand Down

0 comments on commit 45667a2

Please sign in to comment.