Browse Source

fix: show sidebar after mouse wheel scrolling (#10657)

Alexander Zobnin 8 years ago
parent
commit
b3ac85766e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      public/app/core/components/grafana_app.ts

+ 2 - 0
public/app/core/components/grafana_app.ts

@@ -167,6 +167,8 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
       // mouse and keyboard is user activity
       body.mousemove(userActivityDetected);
       body.keydown(userActivityDetected);
+      // set useCapture = true to catch event here
+      document.addEventListener('wheel', userActivityDetected, true);
       // treat tab change as activity
       document.addEventListener('visibilitychange', userActivityDetected);