Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about process scrollRestoration property in Persist? #11

Open
sculove opened this issue Aug 3, 2017 · 0 comments
Open

How about process scrollRestoration property in Persist? #11

sculove opened this issue Aug 3, 2017 · 0 comments

Comments

@sculove
Copy link
Contributor

sculove commented Aug 3, 2017

@sculove commented on Thu Dec 29 2016

Description

The persist create the virtual bfcache (?).
When history back, the scroll position is moved by browser like chrome.
How about control scrollRestoration property?

if ('scrollRestoration' in history) {
  // Back off, browser, I got this...
  history.scrollRestoration = 'manual';
}

@netil commented on Wed Jan 04 2017

  • Pros: Don't intervene programmatically scroll action.
  • Cons: If restoration is set to manual, it means need to implement scroll restoration programmatically.

@sculove commented on Wed Jan 04 2017

I think if you are using persist, it will be the user who will want to control the scrolling


@netil commented on Wed Jan 04 2017

But, in other word it's unnecessary handle scroll (for that it should check exact restoration happening natively)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant