Fix point dragging

This commit is contained in:
John Firebaugh
2013-02-05 09:26:43 -08:00
parent 0cc2d62985
commit 675c39187c
+1 -1
View File
@@ -66,7 +66,7 @@ iD.behavior.DragNode = function(context) {
var loc = context.map().mouseCoordinates();
var d = datum();
if (d.type === 'node') {
if (d.type === 'node' && d.id !== entity.id) {
loc = d.loc;
} else if (d.type === 'way') {
loc = iD.geo.chooseIndex(d, d3.mouse(context.surface().node()), context).loc;