You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`LazyColumn` items in `PdfPagesContent` were running `filter` operations on potentially large lists (`annotations` and `searchState.matches`) on every recomposition. Wrapping these in `remember` with appropriate keys improves scroll performance significantly.
**Task:** Moved document closing to IO thread to prevent ANRs and fixed scroll conflict during zoom.
55
+
**Files Changed:**
56
+
- app/src/main/java/com/yourname/pdftoolkit/ui/screens/PdfViewerViewModel.kt: Moved closeDocument() call into withContext(Dispatchers.IO) to prevent main-thread I/O block and ANR.
57
+
- app/src/main/java/com/yourname/pdftoolkit/ui/screens/PdfViewerScreen.kt: Updated userScrollEnabled logic on LazyColumn to incorporate scale factor so zoomed-in panning doesn't conflict with vertical scrolling.
0 commit comments