Skip to content

Commit

Permalink
Merge pull request #4262 from plotly/fix-layout-first-transition-race…
Browse files Browse the repository at this point in the history
…-condition

Fix "layout first" transition race condition
  • Loading branch information
etpinard authored Oct 9, 2019
2 parents bead43f + aae0c60 commit abbd92d
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 90 deletions.
4 changes: 2 additions & 2 deletions src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -2611,14 +2611,14 @@ plots.transitionFromReact = function(gd, restyleFlags, relayoutFlags, oldFullLay
axisTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
transitionedTraces = allTraceIndices;
traceTransitionOpts = transitionOpts;
transitionTraces();
setTimeout(transitionAxes, transitionOpts.duration);
transitionTraces();
} else {
axisTransitionOpts = transitionOpts;
transitionedTraces = null;
traceTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
setTimeout(transitionTraces, axisTransitionOpts.duration);
transitionAxes();
transitionTraces();
}
} else if(axEdits.length) {
axisTransitionOpts = transitionOpts;
Expand Down
Loading

0 comments on commit abbd92d

Please sign in to comment.