From 9f5c784c6a1fad59c602f240adc3507c581a4605 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Wed, 10 Jan 2024 11:03:41 +0100 Subject: [PATCH] Search: temporarily disable auto-scroll --- src/lib/components/Search.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Search.svelte b/src/lib/components/Search.svelte index 72d450c..6e8ce12 100644 --- a/src/lib/components/Search.svelte +++ b/src/lib/components/Search.svelte @@ -41,9 +41,9 @@ onMount(() => { scrollers_with_results[0].querySelector(".matched-recipe").click() } // if scrollers with results are presenet scroll first result into view - if(scrollers_with_results.length > 0){ + /*if(scrollers_with_results.length > 0){ scrollers_with_results[0].scrollIntoView({behavior: "smooth", block: "end", inline: "nearest"}); - } + }*/ // For now disabled because it is annoying on mobile }