add missing retries in walkthrough if edit menu is closed accidentally

e.g. for the "delete node" step, when the map is accidentally panned the edit menu will be closed, causing the walkthrough to get stuck
This commit is contained in:
Martin Raifer
2025-01-10 16:04:55 +01:00
parent 8c1fc20311
commit 7559dead80
2 changed files with 6 additions and 0 deletions

View File

@@ -1000,6 +1000,9 @@ export function uiIntroLine(context, reveal) {
);
context.map().on('move.intro drawn.intro', function() {
if (selectMenuItem(context, 'delete').empty()) {
return continueTo(multiRightClick);
}
reveal('.edit-menu',
helpHtml('intro.lines.multi_delete'),
{ duration: 0, padding: 50 }

View File

@@ -429,6 +429,9 @@ export function uiIntroPoint(context, reveal) {
timeout(function() {
context.map().on('move.intro', function() {
if (selectMenuItem(context, 'delete').empty()) {
return continueTo(rightClickPoint);
}
reveal('.edit-menu',
helpHtml('intro.points.delete'),
{ duration: 0, padding: 50 }