From 7f4acb46fc1b416b58fb80424583082fd401f545 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 19 Dec 2012 13:38:22 -0800 Subject: [PATCH] Ensure dragging a way is undoable --- js/id/modes/select.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/id/modes/select.js b/js/id/modes/select.js index a94e54103..a6022e1d8 100644 --- a/js/id/modes/select.js +++ b/js/id/modes/select.js @@ -26,7 +26,10 @@ iD.modes.Select = function (entity) { .on('dragend', function () { if (!dragging) return; dragging = undefined; - mode.map.redraw(); + + mode.history.replace( + iD.actions.Noop(), + 'moved a way'); }); function remove() {