Skip to content

Commit b80de2e

Browse files
committed
Merge pull request #174 from plotly/fix-click
Bring back click events [fixes #173]
2 parents b38ff97 + 026e16e commit b80de2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/plots/cartesian/graph_interact.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,6 @@ function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
13771377
yaxes: ya,
13781378
doubleclick: doubleClick,
13791379
prepFn: function(e, startX, startY) {
1380-
fx.unhover(gd); // we want a clear plot for dragging
13811380
var dragModeNow = gd._fullLayout.dragmode;
13821381
if(ns + ew === 'nsew') {
13831382
// main dragger handles all drag modes, and changes
@@ -2045,7 +2044,10 @@ fx.dragElement = function(options) {
20452044

20462045
if(Math.abs(dx) < minDrag) dx = 0;
20472046
if(Math.abs(dy) < minDrag) dy = 0;
2048-
if(dx||dy) gd._dragged = true;
2047+
if(dx||dy) {
2048+
gd._dragged = true;
2049+
fx.unhover(gd);
2050+
}
20492051

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

0 commit comments

Comments
 (0)