Skip to content

Commit 651bf5e

Browse files
committed
fix: solve a bug caused by Parallax/Normal layout reconstruction
1 parent 4d6b757 commit 651bf5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/layouts/NormalLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const NormalLayout: React.FC<
5353
value,
5454
[-1, 0, 1],
5555
[-size, 0, size],
56-
Extrapolate.CLAMP
56+
Extrapolate.EXTEND
5757
);
5858

5959
return {

src/layouts/ParallaxLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const ParallaxLayout: React.FC<
6262
0,
6363
size - parallaxScrollingOffset,
6464
],
65-
Extrapolate.CLAMP
65+
Extrapolate.EXTEND
6666
);
6767

6868
const zIndex = interpolate(

0 commit comments

Comments
 (0)