Skip to content

Commit

Permalink
wip emit double click eventData
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Feb 15, 2016
1 parent 7f785d5 commit bd6995e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plots/cartesian/graph_interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -1821,6 +1821,7 @@ function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
}
}

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

Expand Down
2 changes: 2 additions & 0 deletions src/plots/cartesian/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) {
searchInfo = searchTraces[i];
searchInfo.selectPoints(searchInfo, false);
}

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

0 comments on commit bd6995e

Please sign in to comment.