From ba3bb5792609b2e25a43eadda85f4d7e794a303d Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Fri, 10 Apr 2015 00:34:23 +0900 Subject: [PATCH] suppress all graph redrawing when shared tooltip is enabled --- public/app/panels/graph/graph.tooltip.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/app/panels/graph/graph.tooltip.js b/public/app/panels/graph/graph.tooltip.js index 724588c4fd5..33c29e4e14a 100644 --- a/public/app/panels/graph/graph.tooltip.js +++ b/public/app/panels/graph/graph.tooltip.js @@ -82,14 +82,17 @@ function ($) { }; elem.mouseleave(function () { - if (scope.panel.tooltip.shared || dashboard.sharedCrosshair) { + if (scope.panel.tooltip.shared) { var plot = elem.data().plot; if (plot) { $tooltip.detach(); plot.unhighlight(); - scope.appEvent('clearCrosshair'); } } + + if (dashboard.sharedCrosshair) { + scope.appEvent('clearCrosshair'); + } }); elem.bind("plothover", function (event, pos, item) {