aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-02 14:27:44 -0800
committerNivesh Rajbhandari2012-03-02 14:27:44 -0800
commit14258d1cb3400680ba821d94251defe55714b728 (patch)
tree1fff9464002fc50db4872992e6b1e1eaf0e7ce2b /js/tools
parentcc772ef3333ed419d269a2bda7aea5b0150a7bd9 (diff)
downloadninja-14258d1cb3400680ba821d94251defe55714b728.tar.gz
We should show snap marker on mouse move even if user hasn't moused down yet.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/SelectionTool.js10
-rwxr-xr-xjs/tools/modifier-tool-base.js10
2 files changed, 10 insertions, 10 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js
index 6d8ff175..a2d8510e 100755
--- a/js/tools/SelectionTool.js
+++ b/js/tools/SelectionTool.js
@@ -123,14 +123,14 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, {
123 this.doDraw(event); 123 this.doDraw(event);
124 } else { 124 } else {
125 this._showFeedbackOnMouseMove(event); 125 this._showFeedbackOnMouseMove(event);
126 // if(this._canSnap) 126 if(this._canSnap)
127 // { 127 {
128 // this.doSnap(event); 128 this.doSnap(event);
129 // } 129 }
130 } 130 }
131 131
132 this.DrawHandles(this._delta); 132 this.DrawHandles(this._delta);
133 if(this._canSnap && this._isDrawing) 133 if(this._canSnap)
134 { 134 {
135 this.application.ninja.stage.stageDeps.snapManager.drawLastHit(); 135 this.application.ninja.stage.stageDeps.snapManager.drawLastHit();
136 } 136 }
diff --git a/js/tools/modifier-tool-base.js b/js/tools/modifier-tool-base.js
index 7892d015..7e950b03 100755
--- a/js/tools/modifier-tool-base.js
+++ b/js/tools/modifier-tool-base.js
@@ -828,14 +828,14 @@ exports.ModifierToolBase = Montage.create(DrawingTool, {
828 this.doDraw(event); 828 this.doDraw(event);
829 } else { 829 } else {
830 this._showFeedbackOnMouseMove(event); 830 this._showFeedbackOnMouseMove(event);
831// if(this._canSnap) 831 if(this._canSnap)
832// { 832 {
833// this.doSnap(event); 833 this.doSnap(event);
834// } 834 }
835 } 835 }
836 836
837 this.DrawHandles(this._delta); 837 this.DrawHandles(this._delta);
838 if(this._canSnap && this._isDrawing) 838 if(this._canSnap)
839 { 839 {
840 snapManager.drawLastHit(); 840 snapManager.drawLastHit();
841 } 841 }