diff --git a/hooks/use-scroll-trigger.ts b/hooks/use-scroll-trigger.ts index 43fc7d7..803ff20 100644 --- a/hooks/use-scroll-trigger.ts +++ b/hooks/use-scroll-trigger.ts @@ -234,7 +234,7 @@ export function useScrollTrigger( const onUpdate = useCallback( (progress: number, lastProgress: number) => { - onProgress?.({ + onProgressRef.current?.({ height: endValue - startValue, isActive: progress >= 0 && progress <= 1, progress: clamp(0, progress, 1),