From 5c144c0affeedeab07e08d2fd63f0c5365728e9b Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Fri, 10 Oct 2014 00:55:47 -0700 Subject: [PATCH] make arc pickable --- web/app/arc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/arc.js b/web/app/arc.js index 30e0b3ff..30c60eb5 100644 --- a/web/app/arc.js +++ b/web/app/arc.js @@ -67,7 +67,7 @@ TCAD.TWO.Arc.prototype.visit = function(h) { }; TCAD.TWO.Arc.prototype.normalDistance = function(aim) { - return -1000; + return Math.abs(TCAD.math.distance(aim.x, aim.y, this.c.x, this.c.y) - this.radiusForDrawing()); };