File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change
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!
Original file line number Diff line number Diff line change @@ -600,7 +600,8 @@ proto.updateFx = function(fullLayout) {
600
600
map . dragPan . enable ( ) ;
601
601
map . off ( 'zoomstart' , self . clearSelect ) ;
602
602
self . div . onmousedown = null ;
603
-
603
+ self . div . ontouchstart = null ;
604
+ self . div . removeEventListener ( 'touchstart' , self . div . _ontouchstart ) ;
604
605
// TODO: this does not support right-click. If we want to support it, we
605
606
// would likely need to change mapbox to use dragElement instead of straight
606
607
// mapbox event binding. Or perhaps better, make a simple wrapper with the
You can’t perform that action at this time.
0 commit comments