Skip to content

Commit bd6995e

Browse files
committed
wip emit double click eventData
1 parent 7f785d5 commit bd6995e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/plots/cartesian/graph_interact.js

+1
Original file line numberDiff line numberDiff line change
@@ -1821,6 +1821,7 @@ function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
18211821
}
18221822
}
18231823

1824+
gd.emit('plotly_doubleclick', {});
18241825
Plotly.relayout(gd, attrs);
18251826
}
18261827

src/plots/cartesian/select.js

+2
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
171171
searchInfo = searchTraces[i];
172172
searchInfo.selectPoints(searchInfo, false);
173173
}
174+
175+
gd.emit('plotly_doubleclick', {});
174176
}
175177
else {
176178
dragOptions.gd.emit('plotly_selected', eventData);

0 commit comments

Comments
 (0)