ant-design / ant-design/pro-chat

👑[需求] onScroll 的event里面没有体现滚动的offset ,以及如何做到增量对话的时候,保留在原地,而不是回到最顶部

Open
#307 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
897
Forks
116
PR merge metrics
No merged PRs in 30d

Description

🧐 问题描述

想要通过onscroll 来监听滚动到顶部的操作,在实现过程中没有看到体现距离的数值
image

💻 示例代码
🚑 其他信息

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the onScroll entry point and trace how incremental conversation updates affect the scroll position; the issue names no file or test. Clarify the expected offset data and the preserve-in-place behavior, then verify both outcomes before considering the work done.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.