Commit 00cdb5e3 by Torkel Ödegaard

Merge pull request #1738 from mtanda/suppress_redrawing_by_tooltip

Suppress redrawing when Shared Crosshair is disabled
parents 437cd500 ba3bb579
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment