Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
emit 'plotly_doubleclick' events,
  on dragbox double clicks and select/lasso double clicks
  • Loading branch information
etpinard committed Feb 15, 2016
commit 10cded2cf70a91a63458345cfb7b59a29b614b5c
2 changes: 1 addition & 1 deletion src/plots/cartesian/graph_interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
}
}

gd.emit('plotly_doubleclick', {});
gd.emit('plotly_doubleclick', null);
Plotly.relayout(gd, attrs);
}

Expand Down
2 changes: 1 addition & 1 deletion src/plots/cartesian/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
searchInfo.selectPoints(searchInfo, false);
}

gd.emit('plotly_doubleclick', {});
gd.emit('plotly_doubleclick', null);
}
else {
dragOptions.gd.emit('plotly_selected', eventData);
Expand Down