mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
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:
@@ -1000,6 +1000,9 @@ export function uiIntroLine(context, reveal) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
context.map().on('move.intro drawn.intro', function() {
|
context.map().on('move.intro drawn.intro', function() {
|
||||||
|
if (selectMenuItem(context, 'delete').empty()) {
|
||||||
|
return continueTo(multiRightClick);
|
||||||
|
}
|
||||||
reveal('.edit-menu',
|
reveal('.edit-menu',
|
||||||
helpHtml('intro.lines.multi_delete'),
|
helpHtml('intro.lines.multi_delete'),
|
||||||
{ duration: 0, padding: 50 }
|
{ duration: 0, padding: 50 }
|
||||||
|
|||||||
@@ -429,6 +429,9 @@ export function uiIntroPoint(context, reveal) {
|
|||||||
|
|
||||||
timeout(function() {
|
timeout(function() {
|
||||||
context.map().on('move.intro', function() {
|
context.map().on('move.intro', function() {
|
||||||
|
if (selectMenuItem(context, 'delete').empty()) {
|
||||||
|
return continueTo(rightClickPoint);
|
||||||
|
}
|
||||||
reveal('.edit-menu',
|
reveal('.edit-menu',
|
||||||
helpHtml('intro.points.delete'),
|
helpHtml('intro.points.delete'),
|
||||||
{ duration: 0, padding: 50 }
|
{ duration: 0, padding: 50 }
|
||||||
|
|||||||
Reference in New Issue
Block a user