Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddf1a4f

Browse files
authored
remove touchstart event when not in select mode
1 parent 08f621b commit ddf1a4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plots/mapbox/mapbox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ proto.updateFx = function(fullLayout) {
600600
map.dragPan.enable();
601601
map.off('zoomstart', self.clearSelect);
602602
self.div.onmousedown = null;
603-
603+
self.div.ontouchstart = null;
604+
self.div.removeEventListener('touchstart', self.div._ontouchstart);
604605
// TODO: this does not support right-click. If we want to support it, we
605606
// would likely need to change mapbox to use dragElement instead of straight
606607
// mapbox event binding. Or perhaps better, make a simple wrapper with the

0 commit comments

Comments
 (0)