mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
This PR improves panel toggling FPS by minimizing DOM and canvas updates during resizing. [Screen Recording 2025-03-18 at 11.57.45 PM.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.dev/api/v1/graphite/video/thumbnail/lEGcysB4lFTEbCwZ8jMv/d36beeab-a2e4-4fd6-923a-705ce7fbcdf7.mov" />](https://app.graphite.dev/media/video/lEGcysB4lFTEbCwZ8jMv/d36beeab-a2e4-4fd6-923a-705ce7fbcdf7.mov) ### What changed? - Added a debounced resize handling mechanism using RxJS's `debounceTime` operator - Implemented a new resize strategy that preserves the top-left corner position during resizing - Added state tracking for resize operations with `_isResizing` flag and `_initialTopLeft` coordinates