浏览代码

Add comments

Tobias Skarhed 7 年之前
父节点
当前提交
7361d352bf
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 });
     },
   };