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 #29175

Closed
wants to merge 1 commit into from
Closed

fix(cdk/scrolling): virtual-scroll flickers in zoneless mode #29175

wants to merge 1 commit into from

Conversation

OonihiloO
Copy link

@OonihiloO OonihiloO commented Jun 3, 2024

When provideExperimentalZonelessChangeDetection is enabled,
virtual-scroll-viewport flickers during scroll because the transform operation becomes visible.

This fix uses AfterRenderPhase to ensure this operation stays invisible, despite provideExperimentalZonelessChangeDetection being used or not.

Fixes #29174

When provideExperimentalZonelessChangeDetection is enabled,
virtual-scroll-viewport flickers during scroll because the transform operation becomes visible.
This fix uses AfterRenderPhase to ensure this operation stays invisible,
despite provideExperimentalZonelessChangeDetection being used or not.

Fixes #29174
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the fix!

@mmalerba mmalerba self-assigned this Jun 4, 2024
@mmalerba mmalerba added the target: patch This PR is targeted for the next patch release label Jun 4, 2024
@mmalerba
Copy link
Contributor

mmalerba commented Jun 5, 2024

Unfortunately these changes don't seem quite right. It causes a number of tests in google to fail, and I can see in the dev app (yarn dev-app) that the rendering seems buggier now, sometimes a blank area scrolls into view and new items don't get rendered to fill it.

@OonihiloO
Copy link
Author

Hi @mmalerba, tanks for the quick review.

My bad, sorry for the time spent.

Wish you the very best.

@OonihiloO OonihiloO closed this Jun 5, 2024
@OonihiloO OonihiloO deleted the fix/cdk-scrolling-virtual-scroll-flickers-in-zoneless-mode branch June 6, 2024 13:39
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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