Prevent nudging the selection during low-zoom editing

This commit is contained in:
Quincy Morgan
2020-05-19 12:11:03 -04:00
parent 311566328e
commit a0ae1bf1de
+2 -1
View File
@@ -271,7 +271,8 @@ export function modeSelect(context, selectedIDs) {
function nudgeSelection(delta) {
return function() {
d3_event.stopImmediatePropagation();
// prevent nudging during low zoom selection
if (!context.map().withinEditableZoom()) return;
var moveOp = operationMove(context, selectedIDs);
if (moveOp.disabled()) {