mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 11:44:26 -06:00
suppress all graph redrawing when shared tooltip is enabled
This commit is contained in:
parent
6911572fa1
commit
ba3bb57926
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user