From 6e2d6cc8b289e8f3547485efd6fbd8ce6e72685f Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Thu, 18 Apr 2024 19:20:54 -0500 Subject: [PATCH] Fix scroll bug on --- src/photo/PhotoLink.tsx | 4 +++- src/photo/PhotoLinks.tsx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/photo/PhotoLink.tsx b/src/photo/PhotoLink.tsx index 27e401a4..bbdf02d3 100644 --- a/src/photo/PhotoLink.tsx +++ b/src/photo/PhotoLink.tsx @@ -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)} diff --git a/src/photo/PhotoLinks.tsx b/src/photo/PhotoLinks.tsx index ad0a04d4..0c369464 100644 --- a/src/photo/PhotoLinks.tsx +++ b/src/photo/PhotoLinks.tsx @@ -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