]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update tooltip only when things change (which will only trigger customTooltips when...
authorTanner Linsley <tannerlinsley@gmail.com>
Sun, 1 Nov 2015 00:17:32 +0000 (18:17 -0600)
committerTanner Linsley <tannerlinsley@gmail.com>
Sun, 1 Nov 2015 00:17:32 +0000 (18:17 -0600)
src/core/core.controller.js

index dd3a05019e2f5c01d9e71145e1389835b3949921..2df469516d2cd81bdf8565c483b5bc84cf169684 100644 (file)
                                        (this.lastTooltipActive.length !== this.tooltipActive.length) ||
                                        changed) {
 
+                                       if (this.options.tooltips.enabled || this.options.tooltips.custom) {
+                                               this.tooltip.update();
+                                       }
                                        this.stop();
                                        console.log('render');