Skip to content

Commit

Permalink
useScrollTrigger callback
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Jan 14, 2025
1 parent f404569 commit dc25bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/use-scroll-trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

1 comment on commit dc25bf3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚡️ Lighthouse report for the changes in this commit:

🟢 Performance: 93
🟢 Accessibility: 90
🟢 Best practices: 96
🟠 SEO: 63

Lighthouse ran on https://satus-jiuvpmxmn-darkroom-engineering.vercel.app/

Please sign in to comment.