Skip to content

Commit

Permalink
Fixing reverse test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Aug 7, 2023
1 parent c44c991 commit c938fd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions dev/tests/animate-reverse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ export const App = () => {
duration: 0.5,
ease: "linear",
onUpdate: (v: number) => output.push(v),
onComplete: () =>
onComplete: () => {
setResult(
output[1] === 100 && output.length !== 2
output[0] === 100 && output.length !== 2
? "Success"
: "Fail"
),
)
},
})
controls.time = controls.duration
controls.speed = -1
Expand Down
2 changes: 1 addition & 1 deletion packages/framer-motion-3d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
"@react-three/test-renderer": "^9.0.0",
"@rollup/plugin-commonjs": "^22.0.1"
},
"gitHead": "323727b42a9209415c5a0834449b04b8a71ffc68"
"gitHead": "c44c99166ac21657e91b2578068f9695b8ef5920"
}
2 changes: 1 addition & 1 deletion packages/framer-motion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@
"maxSize": "31.3 kB"
}
],
"gitHead": "323727b42a9209415c5a0834449b04b8a71ffc68"
"gitHead": "c44c99166ac21657e91b2578068f9695b8ef5920"
}

0 comments on commit c938fd9

Please sign in to comment.