Fix some missing smooth scroll function syntax

This commit is contained in:
2022-08-01 18:10:18 +02:00
parent 54dc1a24ff
commit e499f69574
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
<div class="poster">
{#if image}
<a href="/shop/poster-{location.slug}" on:click={() => smoothScroll('poster', false)} sveltekit:noscroll sveltekit:prefetch>
<a href="/shop/poster-{location.slug}" on:click={() => smoothScroll({ hash: 'poster', changeHash: false })} sveltekit:noscroll sveltekit:prefetch>
<Image
id={image.id}
sizeKey="product"

View File

@@ -115,7 +115,7 @@
icon="globe"
label="Discover locations"
alt="Globe"
on:click={() => smoothScroll('locations')}
on:click={() => smoothScroll({ hash: 'locations' })}
/>
</li>
<li>