react-component / react-component/virtual-list
虚拟列表中途加入数据出现滚动抖动的bug
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 814
- Forks
- 171
- Avg merge
- 1h 3m
- Merged PRs (30d)
- 3
Description
场景:上滑加载历史评论(每条都是两行显示)与原来的评论(每条都是一行显示)合并渲染时(合并操作为原来的列表内容向前追加历史评论),新加入的历史评论内容滚动时出现抖动情况,怀疑时新加入的评论itemHeight和原来不统一导致的。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the case where older, two-line comments are prepended to an existing one-line virtual list while scrolling upward. Start by tracing how item heights and scroll position are handled during the prepend and render cycle. Done means newly added items scroll without visible jitter and existing comments retain their expected position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100