Skip to content

Commit 2ffb866

Browse files
committed
chore: default shouldDisableScalingTranslations to true in the banner
1 parent bdb3e0d commit 2ffb866

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ParallaxBanner/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ export const ParallaxBanner = (
6363
const key = `layer-${i}`;
6464
const imageStyle = getImageStyle(layer);
6565
const expandedStyle = getExpandedStyle(expanded, layer);
66-
const parallax = useParallax<HTMLDivElement>(parallaxProps);
66+
const parallax = useParallax<HTMLDivElement>({
67+
shouldDisableScalingTranslations: true,
68+
...parallaxProps,
69+
});
6770

6871
return (
6972
<div

0 commit comments

Comments
 (0)