aboutsummaryrefslogtreecommitdiff
path: root/js/tools/drawing-tool.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-02 17:04:00 -0700
committerJose Antonio Marquez2012-05-02 17:04:00 -0700
commit45197b65041a83634307cbc4a9e4e30c0fb5ea65 (patch)
treedca09f011e4da22cd433b9f56553ade2b49172a4 /js/tools/drawing-tool.js
parent0e59bc28a205292e2efd3ce1fb9a5e539086366d (diff)
parent691beb1c39fc0baa683f1fc56cbc519fe58f306d (diff)
downloadninja-45197b65041a83634307cbc4a9e4e30c0fb5ea65.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into Document
Diffstat (limited to 'js/tools/drawing-tool.js')
-rwxr-xr-xjs/tools/drawing-tool.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/tools/drawing-tool.js b/js/tools/drawing-tool.js
index dc5f7996..d906fdf9 100755
--- a/js/tools/drawing-tool.js
+++ b/js/tools/drawing-tool.js
@@ -72,10 +72,11 @@ exports.DrawingTool = Montage.create(ToolBase, {
72 var snapData, point; 72 var snapData, point;
73 73
74 this._isDrawing = true; 74 this._isDrawing = true;
75 this.mouseDownHitRec = null;
75 this.mouseUpHitRec = null; 76 this.mouseUpHitRec = null;
76 77
77 point = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(event.pageX, event.pageY)); 78 point = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(event.pageX, event.pageY));
78 snapData = DrawingToolBase.getInitialSnapPoint(point.x, point.y); //event.layerX, event.layerY); 79 snapData = DrawingToolBase.getInitialSnapPoint(point.x, point.y, this._targetedElement); //event.layerX, event.layerY);
79 this.mouseDownHitRec = snapData[0]; 80 this.mouseDownHitRec = snapData[0];
80 this.downPoint.x = snapData[1]; 81 this.downPoint.x = snapData[1];
81 this.downPoint.y = snapData[2]; 82 this.downPoint.y = snapData[2];