From 9a0c17fdb84f99d2668c5933700d2bc3f2bdbe4b Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Fri, 20 Mar 2026 15:42:19 +0100 Subject: [PATCH] fix(web): preserve album scroll when adding to other albums (#27078) --- .../[[photos=photos]]/[[assetId=id]]/+page.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte index 2e911d8330..3b366b8ad8 100644 --- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -287,7 +287,11 @@ } }; - const onAlbumAddAssets = async () => { + const onAlbumAddAssets = async ({ albumIds }: { albumIds: string[] }) => { + if (!albumIds.includes(album.id)) { + return; + } + await refreshAlbum(); timelineInteraction.clearMultiselect(); await setModeToView();