Skip to content

Commit 1261363

Browse files
authoredMay 9, 2020
feat(scroll): use manual scrollRestoration with scrollBehavior (#1814)
1 parent c755de9 commit 1261363

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/util/scroll.js

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import { extend } from './misc'
88
const positionStore = Object.create(null)
99

1010
export function setupScroll () {
11+
// Prevent browser scroll behavior on History popstate
12+
if ('scrollRestoration' in window.history) {
13+
window.history.scrollRestoration = 'manual'
14+
}
1115
// Fix for #1585 for Firefox
1216
// Fix for #2195 Add optional third attribute to workaround a bug in safari https://bugs.webkit.org/show_bug.cgi?id=182678
1317
// Fix for #2774 Support for apps loaded from Windows file shares not mapped to network drives: replaced location.origin with

0 commit comments

Comments
 (0)