Skip to content

Commit

Permalink
main 🧊 fix use parallax options
Browse files Browse the repository at this point in the history
  • Loading branch information
debabin committed Jan 6, 2025
1 parent ba3a979 commit c207dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useParallax/useParallax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const useParallax = ((...params: any[]) => {
deviceOrientationTiltAdjust = (value) => value,
mouseRollAdjust = (value) => value,
mouseTiltAdjust = (value) => value
} = (target ? (params[1] ?? {}) : {}) as UseParallaxOptions;
} = ((target ? params[1] : params[0]) ?? {}) as UseParallaxOptions;

const [value, setValue] = useState({
roll: 0,
Expand Down

0 comments on commit c207dba

Please sign in to comment.