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

Remembering scroll position between change events #149

Open
paxperscientiam opened this issue Jan 1, 2017 · 0 comments
Open

Remembering scroll position between change events #149

paxperscientiam opened this issue Jan 1, 2017 · 0 comments

Comments

@paxperscientiam
Copy link

Hello @dieulot ,

I see that InstantClick stores scroll position of page "A", when switching between "A" and "B". That's great, but what if one want the scroll position on page "B" to be the same of that on page "A"?

Is that possible? The closest I've gotten is storing the scroll position and then updating the position on "change". However, this requires a setTimeout delay in order to work; still, it's jarring rather than being seamless.

Perhaps the "change" event emits a promise?

Thanks.

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