cherry-studio/src
jwcrystal 0c32ac1262
refactor(Scrollbar): Optimize scroll handling logic to support external scroll events (#6047)
* refactor(Scrollbar): Optimize scroll handling logic to support external scroll events

- Refactor `onScroll` logic to support external scroll events
- Integrate with `useScrollPosition` hook for better scroll state management
- Memorize the scoll state for better user experience
- Fix type definition for `ref` attribute
- Remove unnecessary `ref` type overrides
- Improve component compatibility and maintainability

* perf(useScrollPosition): Optimize scroll position updates using requestAnimationFrame

- Wrap the `window.keyv.set` call in `requestAnimationFrame` to reduce unnecessary performance overhead and improve responsiveness during scrolling.

* fix(Messages): Remove unused FC imports and add onComponentUpdate and onFirstUpdate properties
2025-05-19 16:33:06 +08:00
..
main refactor: improve sanitization and formatting in buildFunctionCallToo… (#6152) 2025-05-19 11:20:38 +08:00
preload feat: support skipping files during backup(slim backup) (#6075) 2025-05-17 19:20:40 +08:00
renderer refactor(Scrollbar): Optimize scroll handling logic to support external scroll events (#6047) 2025-05-19 16:33:06 +08:00