Skip to content

Commit

Permalink
Merge pull request #174 from plotly/fix-click
Browse files Browse the repository at this point in the history
Bring back click events [fixes #173]
  • Loading branch information
etpinard committed Jan 11, 2016
2 parents b38ff97 + 026e16e commit b80de2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plots/cartesian/graph_interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,6 @@ function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
yaxes: ya,
doubleclick: doubleClick,
prepFn: function(e, startX, startY) {
fx.unhover(gd); // we want a clear plot for dragging
var dragModeNow = gd._fullLayout.dragmode;
if(ns + ew === 'nsew') {
// main dragger handles all drag modes, and changes
Expand Down Expand Up @@ -2045,7 +2044,10 @@ fx.dragElement = function(options) {

if(Math.abs(dx) < minDrag) dx = 0;
if(Math.abs(dy) < minDrag) dy = 0;
if(dx||dy) gd._dragged = true;
if(dx||dy) {
gd._dragged = true;
fx.unhover(gd);
}

if(options.moveFn) options.moveFn(dx, dy, gd._dragged);

Expand Down

0 comments on commit b80de2e

Please sign in to comment.