Skip to content

refactor: 重构消息列表的实现以解决消息列表抖动#325

Merged
haorwen merged 3 commits intomainfrom
refactor/message-scroll
Apr 5, 2026
Merged

refactor: 重构消息列表的实现以解决消息列表抖动#325
haorwen merged 3 commits intomainfrom
refactor/message-scroll

Conversation

@haorwen
Copy link
Copy Markdown
Member

@haorwen haorwen commented Apr 5, 2026

No description provided.

haorwen added 3 commits April 5, 2026 00:32
当用户在上方浏览历史消息时,新消息加入 Virtuoso data 数组会触发内部的
upward scroll compensation,导致可见的滚动位置抖动。通过在非底部时冻结
传给 Virtuoso 的 data 数组,避免新消息引起列表变化和补偿计算。用户滚回
底部时自动解冻显示所有新消息。
@haorwen haorwen merged commit 0658977 into main Apr 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant