Skip to content

Commit

Permalink
Update packages/hooks/use-scroll-position/src/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgarciadev authored May 24, 2024
1 parent 177e25d commit 05d62fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/use-scroll-position/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit 05d62fc

Please sign in to comment.