From d130c517b0a98c470aef269176bda729532f8ff1 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 16 Mar 2016 10:50:38 -0400 Subject: [PATCH] Use offset coordinates instead of mousecoordinates when dragging (re: #3003) --- js/id/modes/drag_node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/modes/drag_node.js b/js/id/modes/drag_node.js index 50f89e1d0..8f6d53c4c 100644 --- a/js/id/modes/drag_node.js +++ b/js/id/modes/drag_node.js @@ -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) {