Skip to content

Commit

Permalink
feat(scroll): use manual scrollRestoration with scrollBehavior (#1814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzinlife committed May 9, 2020
1 parent c755de9 commit 1261363
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import { extend } from './misc'
const positionStore = Object.create(null)

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

0 comments on commit 1261363

Please sign in to comment.