angular / angular/components

bug(cdk-virtual-scroll-viewport): Does not work with ngZoneRunCoalescing

オープン
#25,808 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: cdk/scrolling P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

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

_No response_

### Description

cdk-virtual-scroll-viewport does not work with ngZoneRunCoalescing enabled. Some frames are rendered with incorrect content, causing visual "glitches".

### Reproduction

Steps to reproduce:
1. Go to https://stackblitz.com/edit/cdk-virtual-scroll-bug-run-coalescing
2. Scroll . The bug is most apparent when scrolling slowly.

### Expected Behavior

All rendered frames has correct content during scrolling.

### Actual Behavior

Some frames are rendered with incorrect content, causing glitches.

### Environment

- Angular: 14.2.6
- CDK/Material: 14.2.5
- Browser(s): Safari, Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): iOS, macOS

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされた StackBlitz の再現と、ngZoneRunCoalescing が有効な場合の cdk-virtual-scroll-viewport の動作から始めます。記載されている Angular 14 環境で、Chrome または Safari における低速スクロールを比較します。スクロール中にレンダリングされたすべてのフレームで、視覚的な不具合なく正しいコンテンツが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。