Skip to content

Commit

Permalink
fix formatBezier wrong return value
Browse files Browse the repository at this point in the history
fix the wrong return value from "controlX1, controlY2, controlX2, controlY2" to "controlX1, controlY1, controlX2, controlY2"
  • Loading branch information
tatowilson committed May 26, 2021
1 parent 5bd802a commit 27c73a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/animation/src/formatBezier.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function formatBezier(easing) {
if (easing) {
let m = easing.match(/cubicBezier\((.+),(.+),(.+),(.+)\)/);
return m && [m[1], m[4], m[3], m[4]];
return m && [m[1], m[2], m[3], m[4]];
}
}

0 comments on commit 27c73a3

Please sign in to comment.