-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
🐛 fix: Effectively interrupt auto scrolling #2223
Conversation
@sxjeru is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
👍 @sxjeru Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2223 +/- ##
========================================
Coverage 92.68% 92.68%
========================================
Files 290 290
Lines 16579 16579
Branches 1911 1191 -720
========================================
Hits 15366 15366
Misses 1213 1213 ☔ View full report in Codecov by Sentry. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❤️ Great PR @sxjeru ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 0.151.5](v0.151.4...v0.151.5) <sup>Released on **2024-04-30**</sup> #### 🐛 Bug Fixes - **misc**: Effectively interrupt auto scrolling. #### 💄 Styles - **misc**: Revise some text. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Effectively interrupt auto scrolling, closes [#2223](#2223) ([afe4974](afe4974)) #### Styles * **misc**: Revise some text, closes [#2296](#2296) ([018427f](018427f)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 0.151.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.31.1](v1.31.0...v1.31.1) <sup>Released on **2024-04-30**</sup> #### ♻ Code Refactoring - **misc**: Move app page to the `(main)` layout group. #### 🐛 Bug Fixes - **misc**: Effectively interrupt auto scrolling, fix only inject welcome question in inbox, plugins with multiple settings cannot be correctly configured. #### 💄 Styles - **misc**: Add 404 and Error page, patching models info, Revise some text. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Move app page to the `(main)` layout group, closes [lobehub#2297](https://github.com/bentwnghk/lobe-chat/issues/2297) ([6cc2c38](6cc2c38)) #### What's fixed * **misc**: Effectively interrupt auto scrolling, closes [lobehub#2223](https://github.com/bentwnghk/lobe-chat/issues/2223) ([afe4974](afe4974)) * **misc**: Fix only inject welcome question in inbox, closes [lobehub#2289](https://github.com/bentwnghk/lobe-chat/issues/2289) ([cc8edd3](cc8edd3)) * **misc**: Plugins with multiple settings cannot be correctly configured, closes [lobehub#1991](https://github.com/bentwnghk/lobe-chat/issues/1991) ([0c041aa](0c041aa)) #### Styles * **misc**: Add 404 and Error page, closes [lobehub#2299](https://github.com/bentwnghk/lobe-chat/issues/2299) ([938a3e9](938a3e9)) * **misc**: Patching models info, closes [lobehub#2269](https://github.com/bentwnghk/lobe-chat/issues/2269) [#22802280](https://github.com/bentwnghk/lobe-chat/issues/22802280) ([03bcb06](03bcb06)) * **misc**: Revise some text, closes [lobehub#2296](https://github.com/bentwnghk/lobe-chat/issues/2296) ([018427f](018427f)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* Interrupt auto scrolling * reduce atBottomThreshold * del * del * Alternative invalid followOutput * BottomThreshold 过小导致无法连续滚动 * 避免删除消息触发下滑 * restore mobile BottomThreshold * restore overscan * fix * little fix * fix followOutput
### [Version 0.151.5](lobehub/lobe-chat@v0.151.4...v0.151.5) <sup>Released on **2024-04-30**</sup> #### 🐛 Bug Fixes - **misc**: Effectively interrupt auto scrolling. #### 💄 Styles - **misc**: Revise some text. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Effectively interrupt auto scrolling, closes [lobehub#2223](lobehub#2223) ([afe4974](lobehub@afe4974)) #### Styles * **misc**: Revise some text, closes [lobehub#2296](lobehub#2296) ([018427f](lobehub@018427f)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* Interrupt auto scrolling * reduce atBottomThreshold * del * del * Alternative invalid followOutput * BottomThreshold 过小导致无法连续滚动 * 避免删除消息触发下滑 * restore mobile BottomThreshold * restore overscan * fix * little fix * fix followOutput
### [Version 0.151.5](lobehub/lobe-chat@v0.151.4...v0.151.5) <sup>Released on **2024-04-30**</sup> #### 🐛 Bug Fixes - **misc**: Effectively interrupt auto scrolling. #### 💄 Styles - **misc**: Revise some text. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Effectively interrupt auto scrolling, closes [lobehub#2223](lobehub#2223) ([afe4974](lobehub@afe4974)) #### Styles * **misc**: Revise some text, closes [lobehub#2296](lobehub#2296) ([018427f](lobehub@018427f)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
原先当流畅生成文字时,由于元素持续渲染,导致向上滚动一次鼠标很难阻止自动滚动。
(滚动多次有效,但会出现同时上滚下滚的对抗)
添加了检测到 鼠标滚动/屏幕滑动 即暂停自动滚动的特性,滚动/滑动结束即恢复。
修复了当发送新对话时,不会自动跳转底部的问题。
📝 补充信息 | Additional Information
经测试,建议一并修改下面值以提升体验。
atBottomThreshold
:较大的阈值导致即便向上划了一段距离,依旧能激活自动滚动。尤其在移动端突出。缺点则是“跳转至当前”按钮会更容易出现。
overscan
: 似乎存在优化问题,待进一步检查。大概是 Virtuoso 自身问题,移动端当屏幕滑动时会暂停渲染更新,导致松开后的卡顿与移位,不考虑修复。