Permalink
Browse files

Fixed a logic bug.

Fixed a bug where the x coordinate has been used rather than the y coordinate.
  • Loading branch information...
1 parent 838a29f commit f5b5bc046a3d5d1887cd07ec0578f1b855972e59 @davidaurelio committed Aug 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css-beziers.js
View
@@ -173,7 +173,7 @@ CubicBezier.prototype._getAuxPoints = function(t){
},
i1 = {
x: this._p1.x + t*(this._p2.x - this._p1.x),
- y: this._p1.y + t*(this._p2.x - this._p1.y)
+ y: this._p1.y + t*(this._p2.y - this._p1.y)
},
i2 = { // second control point of the right curve
x: this._p2.x + t*(1 - this._p2.x),

0 comments on commit f5b5bc0

Please sign in to comment.