mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Follow next vertex when deleting, add suppressMenu when vertex following
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user