@@ -139,18 +139,6 @@ exports.plot = function(gd, data, layout, config) {
139139 gd . layout = helpers . cleanLayout ( layout ) ;
140140 }
141141
142- // if the user is trying to drag the axes, allow new data and layout
143- // to come in but don't allow a replot.
144- if ( gd . _dragging && ! gd . _transitioning ) {
145- // signal to drag handler that after everything else is done
146- // we need to replot, because something has changed
147- gd . _replotPending = true ;
148- return Promise . reject ( ) ;
149- } else {
150- // we're going ahead with a replot now
151- gd . _replotPending = false ;
152- }
153-
154142 Plots . supplyDefaults ( gd ) ;
155143
156144 var fullLayout = gd . _fullLayout ;
@@ -386,6 +374,7 @@ exports.plot = function(gd, data, layout, config) {
386374 initInteractions ,
387375 Plots . addLinks ,
388376 Plots . rehover ,
377+ Plots . redrag ,
389378 // TODO: doAutoMargin is only needed here for axis automargin, which
390379 // happens outside of marginPushers where all the other automargins are
391380 // calculated. Would be much better to separate margin calculations from
@@ -1404,7 +1393,7 @@ function restyle(gd, astr, val, _traces) {
14041393 seq . push ( emitAfterPlot ) ;
14051394 }
14061395
1407- seq . push ( Plots . rehover ) ;
1396+ seq . push ( Plots . rehover , Plots . redrag ) ;
14081397
14091398 Queue . add ( gd ,
14101399 restyle , [ gd , specs . undoit , specs . traces ] ,
@@ -1913,7 +1902,7 @@ function relayout(gd, astr, val) {
19131902 seq . push ( emitAfterPlot ) ;
19141903 }
19151904
1916- seq . push ( Plots . rehover ) ;
1905+ seq . push ( Plots . rehover , Plots . redrag ) ;
19171906
19181907 Queue . add ( gd ,
19191908 relayout , [ gd , specs . undoit ] ,
@@ -2446,7 +2435,7 @@ function update(gd, traceUpdate, layoutUpdate, _traces) {
24462435 seq . push ( emitAfterPlot ) ;
24472436 }
24482437
2449- seq . push ( Plots . rehover ) ;
2438+ seq . push ( Plots . rehover , Plots . redrag ) ;
24502439
24512440 Queue . add ( gd ,
24522441 update , [ gd , restyleSpecs . undoit , relayoutSpecs . undoit , restyleSpecs . traces ] ,
@@ -2849,7 +2838,7 @@ exports.react = function(gd, data, layout, config) {
28492838 seq . push ( emitAfterPlot ) ;
28502839 }
28512840
2852- seq . push ( Plots . rehover ) ;
2841+ seq . push ( Plots . rehover , Plots . redrag ) ;
28532842
28542843 plotDone = Lib . syncOrAsync ( seq , gd ) ;
28552844 if ( ! plotDone || ! plotDone . then ) plotDone = Promise . resolve ( gd ) ;
0 commit comments