-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
Introduces in v18, as related to zoneless application feature.
Description
When provideExperimentalZonelessChangeDetection is enabled,
virtual-scroll-viewport flickers during scroll because the transform operation becomes visible.
Reproduction
StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-xwe1bt?file=src%2Fcdk-scroll-component.ts
Steps to reproduce:
- Scroll slowly, as with a trackpad, not a mouse wheel
- Scrolled elements flickers during scroll: the
transformoperation is visible to the end user
Expected Behavior
See this StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-xwe1bt?file=src%2Fcdk-scroll-component.ts
It's the same code, but with zone enabled:
Steps to reproduce:
- Scroll slowly, as with a trackpad, not a mouse wheel
- Scrolled elements don't flicker during scroll: the
transformoperation is invisible to the end user
Actual Behavior
StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-xwe1bt?file=src%2Fcdk-scroll-component.ts
Steps to reproduce:
- Scroll slowly, as with a trackpad, not a mouse-wheel
- Scrolled elements flickers during scroll: the
transformoperation is visible to the end user
Environment
Angular CLI: 18.0.2
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64
Angular: 18.0.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser
Package Version
@angular-devkit/architect 0.1800.2
@angular-devkit/build-angular 18.0.2
@angular-devkit/core 18.0.2
@angular-devkit/schematics 18.0.2
@angular/cli 18.0.2
@schematics/angular 18.0.2
rxjs 7.8.1
typescript 5.4.5