mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Use Passive eventListener for 'wheel' (#12106)
* make wheel passive * remove console
This commit is contained in:
committed by
Torkel Ödegaard
parent
3fb4eb7322
commit
1f32871f70
@@ -199,7 +199,7 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
|
||||
body.mousemove(userActivityDetected);
|
||||
body.keydown(userActivityDetected);
|
||||
// set useCapture = true to catch event here
|
||||
document.addEventListener('wheel', userActivityDetected, true);
|
||||
document.addEventListener('wheel', userActivityDetected, { capture: true, passive: true });
|
||||
// treat tab change as activity
|
||||
document.addEventListener('visibilitychange', userActivityDetected);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user