diff --git a/packages/hooks/use-scroll-position/src/index.ts b/packages/hooks/use-scroll-position/src/index.ts index e98d6daa19..8a85280829 100644 --- a/packages/hooks/use-scroll-position/src/index.ts +++ b/packages/hooks/use-scroll-position/src/index.ts @@ -77,7 +77,7 @@ export const useScrollPosition = (props: UseScrollPositionOptions): ScrollValue clearTimeout(throttleTimeout.current); } }; - }, [elementRef?.current, delay, isEnabled]); + }, [elementRef?.current, delay, handler, isEnabled]); return position.current; };