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

fix: Save scroll position on page unload #369

Merged
merged 3 commits into from
Mar 30, 2020
Merged

Conversation

taion
Copy link
Owner

@taion taion commented Mar 28, 2020

No description provided.

@taion
Copy link
Owner Author

taion commented Mar 28, 2020

@hedgepigdaniel This is following up on your change – if we have a proper event listener for "page unloaded", then we may as well also save scroll positions when that event fires, just in case. What do you think?

@hedgepigdaniel
Copy link
Contributor

Sure, you could - but why would the scroll position change on unload from what it was on the last scroll event?

@taion
Copy link
Owner Author

taion commented Mar 29, 2020

It 99% doesn’t matter, but in case the callback is waiting to fire (given the rAF) or something. Figure I might as well.

@taion taion merged commit 3ac1826 into master Mar 30, 2020
@taion taion deleted the unload-save-position branch March 30, 2020 06:45
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

Successfully merging this pull request may close these issues.

2 participants