aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhwc4872012-05-08 12:10:07 -0700
committerhwc4872012-05-08 12:10:07 -0700
commit15c7bdad38a83d192bd5a1d55a54362c12c73d38 (patch)
tree4b9165b807b026fb67ec34e8a40dfcb7f1152685
parent711c94331ab04bba1d756a30835d376143177820 (diff)
downloadninja-15c7bdad38a83d192bd5a1d55a54362c12c73d38.tar.gz
Fixed a snapping issue on the mouse down in drawing tools.
-rwxr-xr-xjs/tools/drawing-tool-base.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/tools/drawing-tool-base.js b/js/tools/drawing-tool-base.js
index 376b3a27..84641754 100755
--- a/js/tools/drawing-tool-base.js
+++ b/js/tools/drawing-tool-base.js
@@ -36,9 +36,8 @@ exports.DrawingToolBase = Montage.create(Montage, {
36 * 2 - Y value converted to screen point 36 * 2 - Y value converted to screen point
37 */ 37 */
38 getInitialSnapPoint: { 38 getInitialSnapPoint: {
39 value: function(x, y, shapeCanvas) { 39 value: function(x, y, shapeCanvas)
40 snapManager.clearDragPlane(); 40 {
41
42 // update the snap settings 41 // update the snap settings
43 snapManager.enableSnapAlign( snapManager.snapAlignEnabledAppLevel() ); 42 snapManager.enableSnapAlign( snapManager.snapAlignEnabledAppLevel() );
44 snapManager.enableElementSnap( snapManager.elementSnapEnabledAppLevel() ); 43 snapManager.enableElementSnap( snapManager.elementSnapEnabledAppLevel() );