chrome: an attempt to fix scroll issue with chrome, but this did not fix the problem as it seems to be caused by some interaction between graph rendering and scrolling, #8494

This commit is contained in:
Torkel Ödegaard
2017-05-30 13:50:03 +02:00
parent 26ec874fb1
commit cd3807055e
3 changed files with 15 additions and 1 deletions

View File

@@ -122,6 +122,18 @@ export function grafanaAppDirective(playlistSrv, contextSrv) {
body.toggleClass('page-kiosk-mode');
});
var ticking = false;
window.addEventListener('scroll', function(e) {
if (!ticking) {
ticking = true;
setTimeout(function() {
appEvents.emit('scroll');
ticking = false;
}, 100);
}
ticking = true;
});
// handle in active view state class
var lastActivity = new Date().getTime();
var activeUser = true;