From 41cb39ab05442ac60dd7c58d83d41a8082ff2040 Mon Sep 17 00:00:00 2001 From: holyblader2010 Date: Wed, 4 Oct 2017 15:00:49 -0500 Subject: [PATCH] #654 further limiting simple_select to only re-enable dragPan when direct_select has disabled it --- src/modes/simple_select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modes/simple_select.js b/src/modes/simple_select.js index 6687c8185..ff8b5bcc3 100644 --- a/src/modes/simple_select.js +++ b/src/modes/simple_select.js @@ -86,7 +86,7 @@ SimpleSelect.stopExtendedInteractions = function(state) { state.boxSelectElement = null; } - if (state.initialDragPanState !== false) { + if ((state.canDragMove || state.canBoxSelect) && state.initialDragPanState === true) { this.map.dragPan.enable(); }