mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
Use offset coordinates instead of mousecoordinates when dragging
(re: #3003)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user