We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1169948 + ad57366 commit 508e316Copy full SHA for 508e316
draftlogs/6281_fix.md
@@ -0,0 +1,2 @@
1
+ - Fix mapbox `touch event` after switching back from select mode [[#6281](https://github.com/plotly/plotly.js/pull/6281)],
2
+ with thanks to @mmtmr for the contribution!
src/plots/mapbox/mapbox.js
@@ -600,7 +600,8 @@ proto.updateFx = function(fullLayout) {
600
map.dragPan.enable();
601
map.off('zoomstart', self.clearSelect);
602
self.div.onmousedown = null;
603
-
+ self.div.ontouchstart = null;
604
+ self.div.removeEventListener('touchstart', self.div._ontouchstart);
605
// TODO: this does not support right-click. If we want to support it, we
606
// would likely need to change mapbox to use dragElement instead of straight
607
// mapbox event binding. Or perhaps better, make a simple wrapper with the
0 commit comments