From 1697c483602f4ea0f6f122868995bc5df44eca8f Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 18 Jan 2018 22:02:56 -0500 Subject: [PATCH] Fix flickering and drag-node breakage in line endpoint walkthrough step --- modules/ui/intro/line.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/ui/intro/line.js b/modules/ui/intro/line.js index c5d0d9f2f..9d8a656b1 100644 --- a/modules/ui/intro/line.js +++ b/modules/ui/intro/line.js @@ -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(); } }