Skip to content

Commit

Permalink
fix(useParallax): remove unused options.
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Jul 3, 2024
1 parent b6cb994 commit 10f6b77
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/use-parallax/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ import type { Pausable } from '../use-pausable'
import type { ElementTarget } from '../use-target-element'

export interface UseParallaxOptions {
/**
* Adjust the tilt value from device orientation sensor
*/
deviceOrientationTiltAdjust?: (i: number) => number
/**
* Adjust the roll value from device orientation sensor
*/
deviceOrientationRollAdjust?: (i: number) => number
/**
* Adjust the tilt value from mouse sensor
*/
Expand Down Expand Up @@ -49,8 +41,6 @@ export interface UseParallaxReturns extends Pausable {
*/
export function useParallax(target: ElementTarget, options: UseParallaxOptions = {}): UseParallaxReturns {
const latest = useLatest({
deviceOrientationTiltAdjust: (e) => e,
deviceOrientationRollAdjust: (e) => e,
mouseTiltAdjust: (e) => e,
mouseRollAdjust: (e) => e,
...options,
Expand Down

0 comments on commit 10f6b77

Please sign in to comment.