Skip to content

fix(chat ui): 修复聊天界面滚动异常和滚动指示器计算问题 - #2023

Merged
limityan merged 1 commit into
GCWing:mainfrom
lwecei:lixueyi/scroll
Aug 4, 2026
Merged

fix(chat ui): 修复聊天界面滚动异常和滚动指示器计算问题#2023
limityan merged 1 commit into
GCWing:mainfrom
lwecei:lixueyi/scroll

Conversation

@lwecei

@lwecei lwecei commented Aug 4, 2026

Copy link
Copy Markdown
  1. 基于可视区域高度动态计算最大滚动偏移量,避免滚动超出合理范围
  2. 在渲染时校验并修正滚动偏移,防止因布局变化导致视图异常
  3. 修正滚动进度百分比的计算逻辑,使其符合实际滚动位置
  4. 优化代码格式与可读性,调整条件分支的换行排版

Summary

Fixes #

Type and Areas

Type:

Areas:

Motivation / Impact

Verification

Reviewer Notes

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

1. 基于可视区域高度动态计算最大滚动偏移量,避免滚动超出合理范围
2. 在渲染时校验并修正滚动偏移,防止因布局变化导致视图异常
3. 修正滚动进度百分比的计算逻辑,使其符合实际滚动位置
4. 优化代码格式与可读性,调整条件分支的换行排版
@limityan
limityan merged commit d808eb7 into GCWing:main Aug 4, 2026
7 checks passed
@lwecei
lwecei deleted the lixueyi/scroll branch August 4, 2026 06:04
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.

2 participants