Skip to content

Commit e240ea9

Browse files
committed
chore: add shouldDisableScalingTranslations to hook update
1 parent ac54d96 commit e240ea9

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/hooks/useParallax.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ export function useParallax<T extends HTMLElement>(props: ParallaxProps) {
4848
}
4949
}, [
5050
props.disabled,
51-
props.translateX,
52-
props.translateY,
51+
props.easing,
52+
props.endScroll,
53+
props.onChange,
54+
props.onEnter,
55+
props.onExit,
56+
props.onProgressChange,
57+
props.opacity,
58+
props.rootMargin,
5359
props.rotate,
5460
props.rotateX,
5561
props.rotateY,
@@ -58,15 +64,13 @@ export function useParallax<T extends HTMLElement>(props: ParallaxProps) {
5864
props.scaleX,
5965
props.scaleY,
6066
props.scaleZ,
67+
props.shouldAlwaysCompleteAnimation,
68+
props.shouldDisableScalingTranslations,
6169
props.speed,
62-
props.opacity,
63-
props.easing,
64-
props.rootMargin,
65-
props.onProgressChange,
66-
props.onChange,
67-
props.onEnter,
68-
props.onExit,
70+
props.startScroll,
6971
props.targetElement,
72+
props.translateX,
73+
props.translateY,
7074
]);
7175

7276
return { ref, controller, element };

0 commit comments

Comments
 (0)