mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-05 11:32:23 +02:00
do not use tabs
This commit is contained in:
@@ -79,13 +79,13 @@ export function modeDragNode(context) {
|
||||
|
||||
|
||||
function start(entity) {
|
||||
wasMidpoint = entity.type === 'midpoint';
|
||||
wasMidpoint = entity.type === 'midpoint';
|
||||
|
||||
var editableIDs = [ entity.id ];
|
||||
context.graph().parentWays(entity).forEach(function (parentWay) {
|
||||
context.graph().parentWays(entity).forEach(function (parentWay) {
|
||||
editableIDs.push(parentWay.id);
|
||||
editableIDs = editableIDs.concat(_.map(context.graph().parentRelations(parentWay), 'id'));
|
||||
});
|
||||
editableIDs = editableIDs.concat(_.map(context.graph().parentRelations(parentWay), 'id'));
|
||||
});
|
||||
|
||||
isCancelled = d3.event.sourceEvent.shiftKey ||
|
||||
!(wasMidpoint || _.some(editableIDs, function (editableID) { return selectedIDs.indexOf(editableID) !== -1; })) ||
|
||||
@@ -105,8 +105,8 @@ export function modeDragNode(context) {
|
||||
context.perform(actionNoop());
|
||||
}
|
||||
|
||||
activeIDs = _.map(context.graph().parentWays(entity), 'id');
|
||||
activeIDs.push(entity.id);
|
||||
activeIDs = _.map(context.graph().parentWays(entity), 'id');
|
||||
activeIDs.push(entity.id);
|
||||
|
||||
setActiveElements();
|
||||
context.enter(mode);
|
||||
|
||||
Reference in New Issue
Block a user