mirror of
https://github.com/delibae/claude-prism.git
synced 2026-10-11 03:37:54 +00:00
Keep PdfViewer instances mounted (visibility:hidden) instead of unmounting on file switch, so canvas/scroll state is preserved instantly. Also cache editor cursor+scroll and PDF zoom per file. - Keep-alive up to 5 PdfViewer instances with LRU eviction - Save/restore scrollTop via isActive prop on visibility toggle - Per-file editor cursor + scroll cache (editorStateCache) - Per-root PDF zoom + fitMode cache (zoomCache) - Gate IntersectionObserver on isActive to avoid work for hidden viewers - Extract scrollToPageEl helper to deduplicate scroll-retry logic - Deduplicate getOrOpenDocument to reuse getCachedDocument - Clear all caches on project close Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| desktop | ||
| landing@34f235e2a8 | ||