Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
falsandtru committed Feb 13, 2024
1 parent 962c4f0 commit f103b85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layer/interface/service/state/scroll-restoration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ bind(window, 'pjax:fetch', () =>
// 遷移後ページの設定
bind(document, 'pjax:ready', () =>
window.history.scrollRestoration = 'manual', true);
// リロード後のスクロール位置復元に必要
bind(window, 'unload', () =>
window.history.scrollRestoration = 'auto', true);

0 comments on commit f103b85

Please sign in to comment.