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

Skip to content

Commit 4c5103f

Browse files
committed
send null on plotly_doubleclick events:
- to not introduce more complexity into our set of event data
1 parent 848f4a5 commit 4c5103f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/plots/cartesian/graph_interact.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,8 +1822,7 @@ function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
18221822
}
18231823
}
18241824

1825-
var dblClickData = gd._hoverdata ? {points: gd._hoverdata} : null;
1826-
gd.emit('plotly_doubleclick', dblClickData);
1825+
gd.emit('plotly_doubleclick', null);
18271826
Plotly.relayout(gd, attrs);
18281827
}
18291828

0 commit comments

Comments
 (0)