feat: preserve scroll position during note list resets
- Added scroll position preservation when resetting note list (e.g. during searches) - Implemented willReset signal in PaginationService to notify views before data resets - Created preserveOnReset effect to capture scroll offset before list changes - Added restoreAfterReset effect to restore scroll position after data reloads - Updated loadInitial and invalidateCache methods to trigger willReset notifications
This commit is contained in:
Vendored
+36
-36
@@ -180,31 +180,44 @@
|
||||
},
|
||||
"active": "2e9abbba0bbc33e1",
|
||||
"lastOpenFiles": [
|
||||
"test-regular.md.bak",
|
||||
"test-task.md.bak",
|
||||
"test-favorite.md.bak",
|
||||
"test-template.md.bak",
|
||||
"test-regular.md",
|
||||
"test-task.md",
|
||||
"test-template.md",
|
||||
"test-favorite.md",
|
||||
"big/note_500.md",
|
||||
"big/note_499.md",
|
||||
"big/note_497.md",
|
||||
"big/note_498.md",
|
||||
"big/note_491.md",
|
||||
"big/note_496.md",
|
||||
"big/note_492.md",
|
||||
"big/note_495.md",
|
||||
"big/note_489.md",
|
||||
"big/note_494.md",
|
||||
"big/note_487.md",
|
||||
"big/note_488.md",
|
||||
"big/note_493.md",
|
||||
"big/note_490.md",
|
||||
"big/note_485.md",
|
||||
"big/note_486.md",
|
||||
"big/note_482.md",
|
||||
"big/note_484.md",
|
||||
"big/note_483.md",
|
||||
"big/note_479.md",
|
||||
"big/note_481.md",
|
||||
"big/note_480.md",
|
||||
"big/note_474.md",
|
||||
"big/note_473.md",
|
||||
"big/note_472.md",
|
||||
"big/note_477.md",
|
||||
"big/note_499.md.bak",
|
||||
"big/note_500.md.bak",
|
||||
"big/note_497.md.bak",
|
||||
"big/note_498.md.bak",
|
||||
"big/note_495.md.bak",
|
||||
"big/note_496.md.bak",
|
||||
"big/note_494.md.bak",
|
||||
"big/note_493.md.bak",
|
||||
"big/note_492.md.bak",
|
||||
"big/note_491.md.bak",
|
||||
"mixe/Dessin-02.png",
|
||||
"Allo-3/page test.md",
|
||||
"titi/Nouveau-markdown.md",
|
||||
"Allo-3/Nouveau-markdown.md.tmp",
|
||||
"Allo-3/Nouveau-markdown.md.bak",
|
||||
"Allo-3/Nouveau-markdown.md",
|
||||
"tata/test2.md",
|
||||
"dessin.excalidraw.md",
|
||||
"toto/test/Nouvelle note 2 copy.md",
|
||||
"titi/92284.pdf",
|
||||
"Dessin-02.png",
|
||||
"mixe/Relaxing Music relax music music _hls-480_.mp4",
|
||||
"Dessin-02.excalidraw.md",
|
||||
"Drawing-20251028-1452.excalidraw.md",
|
||||
"Dessin-02.excalidraw.md.tmp",
|
||||
"Dessin-02.excalidraw.md.bak",
|
||||
"mixe/ThinkBook_16_G7_ARP_Spec.pdf",
|
||||
"mixe/Claude_ObsiViewer_V1.png",
|
||||
"mixe/image_no_bg_clean.svg",
|
||||
"Drawing-20251028-1452.png",
|
||||
@@ -212,19 +225,6 @@
|
||||
"dessin.png",
|
||||
"dessin_05.svg",
|
||||
"dessin_05.png",
|
||||
"dessin_05.excalidraw.md",
|
||||
"dessin_03.excalidraw.md",
|
||||
"dessin_04.excalidraw.md",
|
||||
"dessin-002.excalidraw.md",
|
||||
"Dessin_001.excalidraw.md",
|
||||
"Drawing 2025-10-28 11.11.59.excalidraw.md",
|
||||
"dessin-06.excalidraw.md",
|
||||
"Dessin-5.excalidraw.md",
|
||||
"Drawing-20251027-2203.excalidraw.md",
|
||||
"dessin-04.excalidraw.md",
|
||||
"Drawing-20251027-2201.excalidraw.md",
|
||||
"Dessin-03.md.excalidraw.md",
|
||||
"Dessin-01.excalidraw.md",
|
||||
"Untitled.canvas"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user