Skip to content

Commit

Permalink
Fixed #7872, pass proper parameters to animation step when animation …
Browse files Browse the repository at this point in the history
…is skipped.
  • Loading branch information
TorsteinHonsi committed Jan 22, 2019
1 parent fd0bdcd commit 2222948
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/parts/SvgRenderer.js
Expand Up @@ -500,9 +500,13 @@ extend(SVGElement.prototype, /** @lends Highcharts.SVGElement.prototype */ {
animate(this, params, animOptions);
} else {
this.attr(params, null, complete);
if (animOptions.step) {
animOptions.step.call(this);
}

// Call the end step synchronously
H.objectEach(params, function (val, prop) {
if (animOptions.step) {
animOptions.step.call(this, val, { prop: prop, pos: 1 });
}
}, this);
}
return this;
},
Expand Down

0 comments on commit 2222948

Please sign in to comment.