Skip to content
Merged
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
move fx.unhover call to onMove handler
  • Loading branch information
etpinard committed Jan 11, 2016
commit 026e16e3dba3a5829ac54c76daf0f955a45ae79f
6 changes: 4 additions & 2 deletions src/plots/cartesian/graph_interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2044,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 All @@ -2059,7 +2062,6 @@ fx.dragElement = function(options) {

if(!gd._dragging) {
gd._dragged = false;
fx.unhover(gd);
return;
}
gd._dragging = false;
Expand Down