Commit d83692aa by Marcus Efraimsson

dashboard: when changing route, scroll to top

parent 1db9aeaa
...@@ -12,6 +12,10 @@ export function geminiScrollbar() { ...@@ -12,6 +12,10 @@ export function geminiScrollbar() {
elem[0].scrollTop = 0; elem[0].scrollTop = 0;
}); });
scope.$on('$routeUpdate', () => {
elem[0].scrollTop = 0;
});
scope.$on('$destroy', () => { scope.$on('$destroy', () => {
scrollbar.destroy(); scrollbar.destroy();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment