aboutsummaryrefslogtreecommitdiff
path: root/js/stage/tool-handle.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage/tool-handle.js')
-rwxr-xr-xjs/stage/tool-handle.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/stage/tool-handle.js b/js/stage/tool-handle.js
index 5ce243ff..e5b0a22f 100755
--- a/js/stage/tool-handle.js
+++ b/js/stage/tool-handle.js
@@ -736,14 +736,14 @@ exports.TranslateHandle = Montage.create(ToolHandle, {
736 }, 736 },
737 737
738 collidesWithPoint: 738 collidesWithPoint:
739 { 739 {
740 value:function (x, y) 740 value:function (x, y)
741 { 741 {
742 var globalPt = [x, y, this._origin[2]]; 742 var globalPt = [x, y, this._origin[2]];
743 743
744 // test for a hit on the origin 744 // test for a hit on the origin
745 var dist = vecUtils.vecDist( 2, globalPt, this._origin ); 745 var dist = vecUtils.vecDist( 2, globalPt, this._origin );
746 if (dist <= 5) return 1; 746 if (dist <= 5) return 1;
747 747
748 var nearPt = MathUtils.nearestPointOnLine2D( this._origin, this._dirVec, globalPt ); 748 var nearPt = MathUtils.nearestPointOnLine2D( this._origin, this._dirVec, globalPt );
749 if(!nearPt) 749 if(!nearPt)