dashboard: lazy loading panels as they become visible,fix, removed debunce #5216

This commit is contained in:
Torkel Ödegaard 2017-03-09 09:08:34 +01:00
parent aee8f0b75e
commit 7f8a3a0a2d
2 changed files with 6 additions and 6 deletions

View File

@ -180,11 +180,11 @@ module.directive('grafanaPanel', function($rootScope, $document) {
return (0 < position.top) && (position.top < window.innerHeight);
};
const refreshOnScroll = _.debounce(function () {
const refreshOnScroll = function () {
if (ctrl.skippedLastRefresh) {
ctrl.refresh();
}
}, 250);
};
$document.on('scroll', refreshOnScroll);