Use offset coordinates instead of mousecoordinates when dragging

(re: #3003)
This commit is contained in:
Bryan Housel
2016-03-16 10:50:38 -04:00
parent b643bf105e
commit d130c517b0
+1 -1
View File
@@ -100,7 +100,7 @@ iD.modes.DragNode = function(context) {
if (nudge) startNudge(nudge);
else stopNudge();
var loc = context.map().mouseCoordinates();
var loc = context.projection.invert(d3.event.point);
var d = datum();
if (d.type === 'node' && d.id !== entity.id) {