Skip to content

Commit

Permalink
perf: improve updateTooltip performance
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed Oct 7, 2021
1 parent cd380b6 commit 5464706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smoothie.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
// x pixel to time
var t = this.options.scrollBackwards
? time - this.mouseX * this.options.millisPerPixel
: time - (this.canvas.offsetWidth - this.mouseX) * this.options.millisPerPixel;
: time - (this.clientWidth - this.mouseX) * this.options.millisPerPixel;

var data = [];

Expand Down

0 comments on commit 5464706

Please sign in to comment.