diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-01 10:03:16 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-01 10:03:16 +0900 |
| commit | de239b6d67171ab4f0576d62338bc4a054f2789d (patch) | |
| tree | a97a68e98899c13a6df6012f5dcd219a5fd680bc /src | |
| parent | Improve navigation (diff) | |
| download | sharkey-de239b6d67171ab4f0576d62338bc4a054f2789d.tar.gz sharkey-de239b6d67171ab4f0576d62338bc4a054f2789d.tar.bz2 sharkey-de239b6d67171ab4f0576d62338bc4a054f2789d.zip | |
Add note
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/router.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/router.ts b/src/client/router.ts index 816f72595a..8c4e762d31 100644 --- a/src/client/router.ts +++ b/src/client/router.ts @@ -50,7 +50,9 @@ export const router = new VueRouter({ { path: '/authorize-follow', component: () => import('./pages/follow.vue').then(m => m.default) }, /*{ path: '*', component: MkNotFound }*/ ], - // なんかバギー + // なんかHacky + // 通常の使い方をすると scroll メソッドの behavior を設定できないため、自前で window.scroll するようにする + // setTimeout しないと、アニメーション(トランジション)の関係でうまく動かない scrollBehavior(to, from, savedPosition) { setTimeout(() => { if (savedPosition) { |