From 18def6e576349fe029895aef107eee53c8ace6b8 Mon Sep 17 00:00:00 2001 From: Thomas Hervey Date: Fri, 20 Jul 2018 12:10:50 -0400 Subject: [PATCH] fixed accidental deletion move function --- modules/modes/drag_note.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/modes/drag_note.js b/modules/modes/drag_note.js index 5cc577339..76575b79e 100644 --- a/modules/modes/drag_note.js +++ b/modules/modes/drag_note.js @@ -206,6 +206,23 @@ export function modeDragNote(context) { _lastLoc = loc; } + function move(entity) { + if (_isCancelled) return; + d3_event.sourceEvent.stopPropagation(); + + context.surface().classed('nope-disabled', d3_event.sourceEvent.altKey); + + _lastLoc = context.projection.invert(d3_event.point); + + doMove(entity); + var nudge = geoViewportEdge(d3_event.point, context.map().dimensions()); + if (nudge) { + startNudge(entity, nudge); + } else { + stopNudge(); + } + } + function end(entity) { if (_isCancelled) return;