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-75d572ba1dddmaster
parent
68033690bd
commit
57dab90b8c
|
@ -2228,7 +2228,7 @@ function BatchCommand(text) {
|
||||||
else {
|
else {
|
||||||
// determine if we clicked on an existing point
|
// determine if we clicked on an existing point
|
||||||
var i = current_poly_pts.length;
|
var i = current_poly_pts.length;
|
||||||
var FUZZ = 6;
|
var FUZZ = 6/current_zoom;
|
||||||
var clickOnPoint = false;
|
var clickOnPoint = false;
|
||||||
while(i) {
|
while(i) {
|
||||||
i -= 2;
|
i -= 2;
|
||||||
|
|
Loading…
Reference in New Issue