diff --git a/src/plots/mapbox/mapbox.js b/src/plots/mapbox/mapbox.js index 7e737ed0e88..061495d0702 100644 --- a/src/plots/mapbox/mapbox.js +++ b/src/plots/mapbox/mapbox.js @@ -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); @@ -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);