Skip to content

Commit

Permalink
fix mapbox clearOutline calls
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Nov 11, 2022
1 parent 35fb5b9 commit 2df24bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plots/mapbox/mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ proto.updateFx = function(fullLayout) {
map.off('click', self.onClickInPanHandler);
if(selectMode(dragMode) || drawMode(dragMode)) {
map.dragPan.disable();
map.on('zoomstart', self.clearSelect);
map.on('zoomstart', self.clearOutline);

self.dragOptions.prepFn = function(e, startX, startY) {
prepSelect(e, startX, startY, self.dragOptions, dragMode);
Expand All @@ -602,7 +602,7 @@ proto.updateFx = function(fullLayout) {
dragElement.init(self.dragOptions);
} else {
map.dragPan.enable();
map.off('zoomstart', self.clearSelect);
map.off('zoomstart', self.clearOutline);
self.div.onmousedown = null;
self.div.ontouchstart = null;
self.div.removeEventListener('touchstart', self.div._ontouchstart);
Expand Down

0 comments on commit 2df24bd

Please sign in to comment.