|
|
@@ -4,6 +4,7 @@ import angular from 'angular';
|
|
|
import $ from 'jquery';
|
|
|
import _ from 'lodash';
|
|
|
import Drop from 'tether-drop';
|
|
|
+import {appEvents} from 'app/core/core';
|
|
|
|
|
|
var module = angular.module('grafana.directives');
|
|
|
|
|
|
@@ -196,7 +197,7 @@ module.directive('grafanaPanel', function($rootScope, $document) {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- $document.on('scroll', refreshOnScroll);
|
|
|
+ appEvents.on('scroll', refreshOnScroll, scope);
|
|
|
|
|
|
scope.$on('$destroy', function() {
|
|
|
elem.off();
|