Skip to content

Commit c56c585

Browse files
committed
events: fix plotly events in mapbox plots
1 parent a2488a4 commit c56c585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/mapbox/mapbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ proto.createMap = function(calcData, fullLayout, resolve, reject) {
166166
Fx.hover(gd, evt, self.id);
167167
});
168168

169-
map.on('click', function() {
170-
Fx.click(gd, { target: true });
169+
map.on('click', function(evt) {
170+
Fx.click(gd, evt.originalEvent);
171171
});
172172

173173
function unhover() {

0 commit comments

Comments
 (0)