Skip to content

Commit

Permalink
fix: parallax layout with new arch enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jiroscripts committed Nov 5, 2024
1 parent 2c2a8e2 commit c195dcf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/layouts/parallax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ export function parallaxLayout(
[-size + parallaxScrollingOffset, 0, size - parallaxScrollingOffset],
);

const zIndex = interpolate(
value,
[-1, 0, 1],
[0, size, 0],
Extrapolation.CLAMP,
const zIndex = Math.round(
interpolate(
value,
[-1, 0, 1],
[0, size, 0],
Extrapolation.CLAMP,
)

Check failure on line 61 in src/layouts/parallax.ts

View workflow job for this annotation

GitHub Actions / test

Missing trailing comma
);

const scale = interpolate(
Expand Down

0 comments on commit c195dcf

Please sign in to comment.