mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
fix node dragging
This commit is contained in:
@@ -139,9 +139,13 @@ iD.modes.DragNode = function(context) {
|
||||
|
||||
var parentWays = _.pluck(context.graph().parentWays(entity), 'id');
|
||||
|
||||
context.enter(
|
||||
iD.modes.Select(context, parentWays)
|
||||
.suppressMenu(true));
|
||||
if (parentWays.length) {
|
||||
context.enter(
|
||||
iD.modes.Select(context, parentWays)
|
||||
.suppressMenu(true));
|
||||
} else {
|
||||
context.enter(iD.modes.Browse(context));
|
||||
}
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
|
||||
Reference in New Issue
Block a user