Skip to content

fix(cdk/scrolling): Prevent virtual scroll 'flickering' with zoneless - #31316

Merged
mmalerba merged 3 commits into
angular:mainfrom
atscott:scrollflicker2
Jul 17, 2025
Merged

mmalerba merged 3 commits into
angular:mainfrom
atscott:scrollflicker2

Conversation

@atscott

@atscott atscott commented Jun 8, 2025

Copy link
Copy Markdown
Contributor

This commit reworks the change detection coalescing to use signal and effects, which ensures the transform and the afterNextRender are applied within the same application tick without any awkward workarounds or fiddling with being inside or outside the zone

This commit reworks the change detection coalescing to use signal and effects, which ensures the transform and the afterNextRender are applied within the same application tick without any awkward workarounds or fiddling with being inside or outside the zone
@atscott
atscott marked this pull request as ready for review July 15, 2025 19:52
@atscott
atscott requested a review from a team as a code owner July 15, 2025 19:52
@atscott
atscott requested review from andrewseguin and crisbeto and removed request for a team July 15, 2025 19:52
Comment thread src/cdk/scrolling/virtual-scroll-viewport.ts
Comment thread src/cdk/scrolling/virtual-scroll-viewport.ts Outdated
Comment thread src/cdk/scrolling/virtual-scroll-viewport.ts
@atscott

atscott commented Jul 17, 2025

Copy link
Copy Markdown
Contributor Author

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Jul 17, 2025
@mmalerba mmalerba added the target: patch This PR is targeted for the next patch release label Jul 17, 2025
@mmalerba
mmalerba merged commit cea7989 into angular:main Jul 17, 2025
mmalerba pushed a commit that referenced this pull request Jul 17, 2025
…#31316)

* fix(cdk/scrolling): Prevent virtual scroll 'flickering' with zoneless

This commit reworks the change detection coalescing to use signal and effects, which ensures the transform and the afterNextRender are applied within the same application tick without any awkward workarounds or fiddling with being inside or outside the zone

* fixup! fix(cdk/scrolling): Prevent virtual scroll 'flickering' with zoneless

* fixup! fix(cdk/scrolling): Prevent virtual scroll 'flickering' with zoneless

(cherry picked from commit cea7989)
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Aug 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: cdk/scrolling target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants