Commit 1db9aeaa by Marcus Efraimsson

fix: when navigating, scroll to top

parent 3d2d789c
...@@ -8,6 +8,10 @@ export function geminiScrollbar() { ...@@ -8,6 +8,10 @@ export function geminiScrollbar() {
let scrollbar = new PerfectScrollbar(elem[0]); let scrollbar = new PerfectScrollbar(elem[0]);
scope.$on('$routeChangeSuccess', () => {
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