Freedraw bugfix for Firefox 3.6.x

The pointer flies away on starting freedrawing - line is drawing.
Here you can see a screenshot:
<img src="https://s3-eu-west-1.amazonaws.com/kienzle.geschaeft/projects/sketch/fabric_freedraw_problem_firefox_3.6.x.png"/>

jsFiddle:
http://jsfiddle.net/r2ZE7/95/
This commit is contained in:
Kienz 2012-12-13 11:57:16 +01:00
parent 3fa2a01faa
commit d8831feb0e

View file

@ -96,6 +96,8 @@
var p1 = this._points[0];
var p2 = this._points[1];
ctx.moveTo(p1.x, p1.y);
for (var i = 1, len = this._points.length; i < len; i++) {
// we pick the point between pi+1 & pi+2 as the
// end point and p1 as our control point.