Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry authored and mergatron[bot] committed May 22, 2024
1 parent 9f09fd2 commit 738c3b4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
onAnimationComplete: () => {
const box = document.getElementById("box")
const { left } = box.getBoundingClientRect()
console.log(left)

if (left !== 200) {
showError(
box,
Expand Down
1 change: 0 additions & 1 deletion packages/framer-motion/src/frameloop/batcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export function createRenderBatcher(
}

const processBatch = () => {
allowKeepAlive ? console.log("frame") : console.log("microtask")
const timestamp = MotionGlobalConfig.useManualTiming
? state.timestamp
: performance.now()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,12 @@ export function createProjectionNode<I>({
if (this.isUpdateBlocked()) return

this.isUpdating = true

if (window.HandoffCancelAllAnimations) {
// flushKeyframeResolvers()
window.HandoffCancelAllAnimations()
}

this.nodes && this.nodes.forEach(resetSkewAndRotation)
this.animationId++
}
Expand Down Expand Up @@ -648,10 +654,6 @@ export function createProjectionNode<I>({
/**
* Write
*/
if (window.HandoffCancelAllAnimations) {
flushKeyframeResolvers()
window.HandoffCancelAllAnimations()
}
this.nodes!.forEach(resetTransformStyle)

/**
Expand Down Expand Up @@ -791,7 +793,7 @@ export function createProjectionNode<I>({
this.isLayoutDirty = false
this.projectionDelta = undefined
this.notifyListeners("measure", this.layout.layoutBox)
console.log("layout", this.layout.measuredBox.x)

const { visualElement } = this.options
visualElement &&
visualElement.notify(
Expand Down
2 changes: 0 additions & 2 deletions packages/framer-motion/src/render/html/utils/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export function renderHTML(
projection && projection.getProjectionStyles(styleProp)
)

console.log(style)

// Loop over any CSS variables and assign those.
for (const key in vars) {
element.style.setProperty(key, vars[key] as string)
Expand Down

0 comments on commit 738c3b4

Please sign in to comment.