mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix way dragging. Fixes #235
This commit is contained in:
@@ -19,9 +19,10 @@ iD.modes.Select = function (entity) {
|
||||
mode.history.perform(iD.actions.Noop());
|
||||
}
|
||||
|
||||
entity.nodes.forEach(function(node) {
|
||||
var start = mode.map.projection(node.loc);
|
||||
var end = mode.map.projection.invert([
|
||||
entity.nodes.forEach(function(n) {
|
||||
var node = mode.history.graph().entity(n.id),
|
||||
start = mode.map.projection(node.loc),
|
||||
end = mode.map.projection.invert([
|
||||
start[0] + d3.event.dx,
|
||||
start[1] + d3.event.dy]);
|
||||
mode.history.replace(iD.actions.Move(node.id, end));
|
||||
|
||||
Reference in New Issue
Block a user