From 819b92500ee740b8826ea7c613322887091dad70 Mon Sep 17 00:00:00 2001 From: Calum Dingwall <29152895+caburum@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:42:48 -0600 Subject: [PATCH] feat(web): partially fix scrolling reset on search page the scroll position is still changed, however it centers the selected item which is more usable than just the top --- web/src/lib/utils/navigation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/utils/navigation.ts b/web/src/lib/utils/navigation.ts index 4d5660f1737ff..145591db7f8e6 100644 --- a/web/src/lib/utils/navigation.ts +++ b/web/src/lib/utils/navigation.ts @@ -66,7 +66,7 @@ async function navigateAssetRoute(route: AssetRoute) { const { assetId } = route; const next = assetId ? currentUrlReplaceAssetId(assetId) : currentUrlWithoutAsset(); if (next !== currentUrl()) { - await goto(next, { replaceState: false }); + await goto(next, { replaceState: false, noScroll: true }); } }