mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-11 12:17:14 +02:00
Fix flickering and drag-node breakage in line endpoint walkthrough step
This commit is contained in:
@@ -467,10 +467,6 @@ export function uiIntroLine(context, reveal) {
|
||||
if (!context.hasEntity(woodRoadId) || !context.hasEntity(woodRoadEndId)) {
|
||||
return continueTo(updateLine);
|
||||
}
|
||||
if (context.selectedIDs().indexOf(woodRoadId) === -1) {
|
||||
context.enter(modeSelect(context, [woodRoadId]));
|
||||
}
|
||||
|
||||
var padding = 100 * Math.pow(2, context.map().zoom() - 19);
|
||||
var box = pad(woodRoadDragEndpoint, padding, context);
|
||||
reveal(box, t('intro.lines.start_drag_endpoint'));
|
||||
@@ -489,16 +485,8 @@ export function uiIntroLine(context, reveal) {
|
||||
}
|
||||
});
|
||||
|
||||
context.on('enter.intro', function(mode) {
|
||||
if (mode.id !== 'select') {
|
||||
// keep Wood Road selected so endpoint stays draggable..
|
||||
context.enter(modeSelect(context, [woodRoadId]));
|
||||
}
|
||||
});
|
||||
|
||||
function continueTo(nextStep) {
|
||||
context.map().on('move.intro drawn.intro', null);
|
||||
context.on('enter.intro', null);
|
||||
nextStep();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user