Skip to content

Commit

Permalink
perf: remove an unnecessary call to updateTooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed Sep 6, 2021
1 parent 5f14e14 commit c849bef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions smoothie.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,6 @@
}

this.resize();
this.updateTooltip();

this.lastRenderTimeMillis = nowMillis;

Expand Down Expand Up @@ -1011,8 +1010,8 @@
context.lineTo(this.mouseX, dimensions.height);
context.closePath();
context.stroke();
this.updateTooltip();
}
this.updateTooltip();

// Draw the axis values on the chart.
if (!chartOptions.labels.disabled && !isNaN(this.valueRange.min) && !isNaN(this.valueRange.max)) {
Expand Down

0 comments on commit c849bef

Please sign in to comment.