Skip to content
Merged
Changes from all commits
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
6 changes: 4 additions & 2 deletions src/plots/cartesian/graph_interact.js
Original file line numberDiff line numberDiff 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 DownExpand 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