Browse Source

Add comments

Tobias Skarhed 7 years ago
parent
commit
7361d352bf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      public/app/core/components/scroll/page_scroll.ts

+ 2 - 0
public/app/core/components/scroll/page_scroll.ts

@@ -29,10 +29,12 @@ export function pageScrollbar() {
       scope.$on('$routeChangeSuccess', () => {
         lastPos = 0;
         elem[0].scrollTop = 0;
+        // Focus page to enable scrolling by keyboard
         elem[0].focus({ preventScroll: true });
       });
 
       elem[0].tabIndex = -1;
+      // Focus page to enable scrolling by keyboard
       elem[0].focus({ preventScroll: true });
     },
   };