Explorar el Código

suppress all graph redrawing when shared tooltip is enabled

Mitsuhiro Tanda hace 10 años
padre
commit
ba3bb57926
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5 2
      public/app/panels/graph/graph.tooltip.js

+ 5 - 2
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) {