Skip to content

Commit

Permalink
Zooming out should not exit save mode
Browse files Browse the repository at this point in the history
(closes #4664)
  • Loading branch information
bhousel committed Jan 8, 2018
1 parent 1b973f3 commit 8472f99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/renderer/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,12 @@ export function rendererMap(context) {
function editOff() {
context.features().resetStats();
surface.selectAll('.layer-osm *').remove();
context.enter(modeBrowse(context));

var mode = context.mode();
if (mode && mode.id !== 'save') {
context.enter(modeBrowse(context));
}

dispatch.call('drawn', this, {full: true});
}

Expand Down

0 comments on commit 8472f99

Please sign in to comment.