This commit is contained in:
portree_kid 2020-08-28 22:02:13 +02:00
parent 0146ee8623
commit 715f3c968e

View File

@ -788,7 +788,7 @@ You should have received a copy of the GNU General Public License along with FG
console.warn('No glueindex : ' + latlng.__vertex); console.warn('No glueindex : ' + latlng.__vertex);
} }
let distance = latlng.distanceTo(eventLatlng) let distance = latlng.distanceTo(eventLatlng)
if (distance > 0 && distance < snap) { if (distance >= 0 && distance < snap && latlng.glueindex >=0) {
layers.push({d: distance, l: layer, latlng: latlng.__vertex.latlng, glueindex: latlng.glueindex}) layers.push({d: distance, l: layer, latlng: latlng.__vertex.latlng, glueindex: latlng.glueindex})
} }
} else { } else {