Skip to content

Commit

Permalink
Fixed a logic bug.
Browse files Browse the repository at this point in the history
Fixed a bug where the x coordinate has been used rather than the y coordinate.
  • Loading branch information
davidaurelio committed Aug 15, 2010
1 parent 838a29f commit f5b5bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css-beziers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit f5b5bc0

Please sign in to comment.