Follow next vertex when deleting, add suppressMenu when vertex following

This commit is contained in:
Bryan Housel
2016-12-09 12:11:24 -05:00
parent 3abf1b5be8
commit dc5da7b480
2 changed files with 7 additions and 5 deletions

View File

@@ -301,7 +301,7 @@ export function modeSelect(context, selectedIDs) {
if (parent) {
var way = context.entity(parent);
context.enter(
modeSelect(context, [way.first()]).follow(true)
modeSelect(context, [way.first()]).follow(true).suppressMenu(true)
);
}
}
@@ -313,7 +313,7 @@ export function modeSelect(context, selectedIDs) {
if (parent) {
var way = context.entity(parent);
context.enter(
modeSelect(context, [way.last()]).follow(true)
modeSelect(context, [way.last()]).follow(true).suppressMenu(true)
);
}
}
@@ -337,7 +337,7 @@ export function modeSelect(context, selectedIDs) {
if (index !== -1) {
context.enter(
modeSelect(context, [way.nodes[index]]).follow(true)
modeSelect(context, [way.nodes[index]]).follow(true).suppressMenu(true)
);
}
}
@@ -361,7 +361,7 @@ export function modeSelect(context, selectedIDs) {
if (index !== -1) {
context.enter(
modeSelect(context, [way.nodes[index]]).follow(true)
modeSelect(context, [way.nodes[index]]).follow(true).suppressMenu(true)
);
}
}

View File

@@ -47,7 +47,9 @@ export function operationDelete(selectedIDs, context) {
context.perform(action, annotation);
if (nextSelectedID && context.hasEntity(nextSelectedID)) {
context.enter(modeSelect(context, [nextSelectedID]));
context.enter(
modeSelect(context, [nextSelectedID]).follow(true).suppressMenu(true)
);
} else {
context.enter(modeBrowse(context));
}