Skip to content

优化:最新行在可视区域内自动跳转到底部,否则不自动跳转 #128

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

Closed
navishachiku opened this issue Dec 12, 2024 · 4 comments
Assignees
Labels
optimization Optimizing design or code

Comments

@navishachiku
Copy link

我目前使用做为 MQTT 消息的监听

但有时候会有需求来查看被卷动上去的历史消息

由于 MQTT 会持续 pushMessage,所以导致 _jumpToBottom() 也不断被触发,而无法回头查看消息

希望可以透过 scrollMode 来切换暂时停止滚动

@navishachiku navishachiku added the enhancement New feature or request label Dec 12, 2024
@tzfun
Copy link
Owner

tzfun commented Dec 12, 2024

scrollMode为none有其他意义,这么设计不太合适。

有一个处理方式不知道能不能解决你的问题:当最新一行在可视区域内就自动跳到底部,否则就不自动跳转

@navishachiku
Copy link
Author

scrollMode为none有其他意义,这么设计不太合适。

有一个处理方式不知道能不能解决你的问题:当最新一行在可视区域内就自动跳到底部,否则就不自动跳转

可以的,不如说这是我期望的更完整的解决方案。

我原本是打算用上面scrollMode的模式再接着拼出如你描述的这个功能

但若你能直接提供这个解决方法的话就更好了,谢谢!

@tzfun
Copy link
Owner

tzfun commented Dec 12, 2024

OK,这个作为一个优化项在下个版本更新

@tzfun tzfun added optimization Optimizing design or code and removed enhancement New feature or request labels Dec 12, 2024
@tzfun tzfun changed the title 建议为 scrollMode 添加 'none' 选项以禁用自动滚动 优化:最新行在可视区域内自动跳转到底部,否则不自动跳转 Dec 12, 2024
tzfun added a commit that referenced this issue Dec 24, 2024
tzfun added a commit that referenced this issue Dec 24, 2024
@tzfun
Copy link
Owner

tzfun commented Dec 25, 2024

已发布 2.3.33.3.3 版本更新

@tzfun tzfun closed this as completed Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Optimizing design or code
Projects
None yet
Development

No branches or pull requests

2 participants