Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实时滚动到底部 #5

Closed
devyujie opened this issue Mar 16, 2023 · 5 comments
Closed

实时滚动到底部 #5

devyujie opened this issue Mar 16, 2023 · 5 comments
Labels
discussion enhancement New feature or request

Comments

@devyujie
Copy link

这里能否实时/强制滚动到底部,现在看只能问题回答完或者手动。
image

@josStorer
Copy link
Owner

josStorer commented Mar 16, 2023

v2.0.2已更新这个功能, 在每次你输入新问题, 及问题回答完毕后, 都会滚动到底部

如果一直强制滚动到底部, 在你想浏览上方信息时体验不好

@josStorer josStorer added the invalid This doesn't seem right label Mar 16, 2023
@devyujie
Copy link
Author

devyujie commented Mar 16, 2023

我觉得是,当问新问题时,上方的回答肯定都阅读过了,如果在回答时一直保持滚动在底部,阅读体验上会很好,因为眼部会一直锁定他的回答。

有点像眼睛流式输入的感觉,蹦几个字看几个字,哈哈。

@josStorer
Copy link
Owner

我其实更倾向于, 你不想看上面的信息, 就折叠, 这样空间大了就能够自动伸缩

锁定底部改动很容易

ConversationCard里, 搜索bodyRef.current.scrollTop, 把[session]改成[conversationItemData]就行了, 你可以试一下, 我个人觉得体验不好

@josStorer josStorer added discussion and removed invalid This doesn't seem right labels Mar 16, 2023
@josStorer
Copy link
Owner

想到了, 我直接给这功能加个开关就行了

@josStorer josStorer added the enhancement New feature or request label Mar 16, 2023
josStorer added a commit that referenced this issue Mar 16, 2023
@josStorer
Copy link
Owner

已更新 v2.0.3, 添加了锁定开关

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants