naver / egjs

Javascript components group that brings easiest and fastest way to build a web application in your way.
https://naver.github.io/egjs
Other
937 stars 81 forks source link

How about process `scrollRestoration` property in Persist? #435

Closed sculove closed 7 years ago

sculove commented 7 years ago

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 7 years ago
sculove commented 7 years ago

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

netil commented 7 years ago

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

sculove commented 7 years ago

Issue moved to naver/egjs-persist #11 via ZenHub