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(cdk/scrolling): virtual scroll flickers in zoneless mode. #29777

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jacob-noble
Copy link

@jacob-noble jacob-noble commented Sep 23, 2024

When provideExperimentalZonelessChangeDetection is enabled, virtual-scroll-viewport flickers during scroll because the transform operation becomes visible. This fix moves the style transform into the afterNextRender phase to ensure it stays invisible.

Fixes #29174

When provideExperimentalZonelessChangeDetection is enabled,
virtual-scroll-viewport flickers during scroll because
the transform operation becomes visible.
This fix moves the style transform into the
afterNextRender phase to ensure it stays invisible.

Fixes angular#29174
@jacob-noble jacob-noble requested a review from a team as a code owner September 23, 2024 17:06
@jacob-noble jacob-noble requested review from crisbeto and amysorto and removed request for a team September 23, 2024 17:06
@andy-clapson
Copy link

This is a sharp-looking pull request!

@atscott atscott requested review from mmalerba and removed request for crisbeto September 24, 2024 04:49
@atscott
Copy link
Contributor

atscott commented Sep 24, 2024

This is exactly how it was in d91d0d4 before it was reverted due to an internal breakage and moved outside in 32d2683.

This will require another round of unpacking the problem and re-evaluating potential solutions. IIRC, this one broke scrolling entirely in the app. Once scrolling started, it never stopped.

@jacob-noble
Copy link
Author

@atscott - Thanks for taking the time to look at this. I wasn't aware that this was a solution that was tried previously.

I haven't run into the issue where scrolling broke entirely yet (either in the local environment or in one of the projects I'm involved in that makes use of this fix as a patch). Do you know how to reproduce that issue?

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.

bug(cdk/scrolling): virtual-scroll flickers during scroll in zoneless mode
3 participants