Skip to content

Commit

Permalink
add useScroll offset param to useEffect dependencies array to allow o…
Browse files Browse the repository at this point in the history
…ffset change
  • Loading branch information
kalimantos committed Aug 16, 2023
1 parent 4f3aa5a commit cb6ed04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framer-motion/src/value/use-scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function useScroll({
target: target?.current || undefined,
}
)
}, [])
}, [JSON.stringify(options.offset)])

return values
}

0 comments on commit cb6ed04

Please sign in to comment.