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

Avoid flash effect on scroll restoration #25

Merged
merged 2 commits into from Sep 5, 2020
Merged

Conversation

calvellido
Copy link
Owner

These changes try to avoid the flash effect (commented in #22 or #18) that can occur when the polyfill is used under some circumstances.

It does this by moving nativeFocus execution as close as possible to scroll restoration, so the delay between them is minimum and not perceivable to the human eye.

@calvellido calvellido added the enhancement New feature or request label Sep 5, 2020
@calvellido calvellido merged commit 321a392 into master Sep 5, 2020
@calvellido calvellido deleted the jv-avoid-flashing branch September 5, 2020 16:29
@dminkovsky
Copy link

Thanks a lot. Seems to be working very well in iOS 14.

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

Successfully merging this pull request may close these issues.

None yet

2 participants