Fix scroll bug on <PhotoLink />

This commit is contained in:
Sam Becker 2024-04-18 19:20:54 -05:00
parent f49e0678c9
commit 6e2d6cc8b2
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ export default function PhotoLink({
tag,
camera,
simulation,
scroll,
prefetch,
nextPhotoAnimation,
className,
@ -24,6 +25,7 @@ export default function PhotoLink({
tag?: string
camera?: Camera
simulation?: FilmSimulation
scroll?: boolean
prefetch?: boolean
nextPhotoAnimation?: AnimationConfig
className?: string
@ -42,7 +44,7 @@ export default function PhotoLink({
}
}}
className={className}
scroll={false}
scroll={scroll}
>
{children ?? titleForPhoto(photo)}
</Link>

View File

@ -86,6 +86,7 @@ export default function PhotoLinks({
tag={tag}
camera={camera}
simulation={simulation}
scroll={false}
prefetch
>
PREV
@ -96,6 +97,7 @@ export default function PhotoLinks({
tag={tag}
camera={camera}
simulation={simulation}
scroll={false}
prefetch
>
NEXT