Skip to content

Commit

Permalink
fix(common): make more restrictive the supportScrollRestoration method
Browse files Browse the repository at this point in the history
  • Loading branch information
wKoza committed Jan 20, 2019
1 parent 73dcd72 commit 6e63c1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/viewport_scroller.ts
Expand Up @@ -149,7 +149,8 @@ export class BrowserViewportScroller implements ViewportScroller {
*/
private supportScrollRestoration(): boolean {
try {
return !!this.window && !!this.window.scrollTo;
return !!this.window && !!this.window.scrollTo && 'scrollX' in this.window &&
'scrollY' in this.window;
} catch {
return false;
}
Expand Down

0 comments on commit 6e63c1d

Please sign in to comment.