Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emirhangumus committed Nov 16, 2023
1 parent d0473a5 commit 77dd641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/use-snap-points.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function useSnapPoints({
const shouldFade =
(snapPoints &&
snapPoints.length > 0 &&
(fadeFromIndex || fadeFromIndex === 0) &&
!Number.isNaN(fadeFromIndex) &&
snapPoints[fadeFromIndex] === activeSnapPoint) ||
!snapPoints;
Expand Down

0 comments on commit 77dd641

Please sign in to comment.