Skip to content

Commit

Permalink
mapbox#654 further limiting simple_select to only re-enable dragPan w…
Browse files Browse the repository at this point in the history
…hen direct_select has disabled it
  • Loading branch information
holyblader2010 authored and Zsofia Abraham committed Sep 20, 2020
1 parent cc4ba54 commit 41cb39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modes/simple_select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 41cb39a

Please sign in to comment.