Skip to content

Commit

Permalink
Revert "Fix boxZoom bug (mapbox#1017) (h/t @kibala145)"
Browse files Browse the repository at this point in the history
This reverts commit 9c0010c.
  • Loading branch information
danielsippel committed Apr 17, 2024
1 parent ff1e0f2 commit 28021a9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default function(ctx) {
ctx.ui.removeButtons();
ctx.events.removeEventListeners();
ctx.ui.clearMapClasses();
if (ctx.boxZoomInitial) ctx.map.boxZoom.enable();
ctx.map = null;
ctx.container = null;
ctx.store = null;
Expand Down Expand Up @@ -64,7 +63,6 @@ export default function(ctx) {
controlContainer = ctx.ui.addButtons();

if (ctx.options.boxSelect) {
ctx.boxZoomInitial = map.boxZoom.isEnabled();
map.boxZoom.disable();
// Need to toggle dragPan on and off or else first
// dragPan disable attempt in simple_select doesn't work
Expand Down

0 comments on commit 28021a9

Please sign in to comment.