From 57dab90b8c3872e625cf3de0953a9f795cd2aee6 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 15 Sep 2009 20:50:38 +0000 Subject: [PATCH] Fix Issue 205: scale the 'fuzz' factor for polygon point picking in case of zoom git-svn-id: http://svg-edit.googlecode.com/svn/trunk@651 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index a13ef7fc..6774f213 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -2228,7 +2228,7 @@ function BatchCommand(text) { else { // determine if we clicked on an existing point var i = current_poly_pts.length; - var FUZZ = 6; + var FUZZ = 6/current_zoom; var clickOnPoint = false; while(i) { i -= 2;