Skip to content

Commit

Permalink
feat: carousel optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
tprache-pass committed Feb 13, 2025
1 parent fad12ae commit 4328791
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const Carousel = (props: CarouselProps) => {
}

const viewabilityConfig = {
itemVisiblePercentThreshold: 50,
itemVisiblePercentThreshold: 100,
}

const viewabilityConfigCallbackPairs = useRef([{ viewabilityConfig, onViewableItemsChanged }])
Expand Down Expand Up @@ -94,9 +94,9 @@ export const Carousel = (props: CarouselProps) => {
viewabilityConfigCallbackPairs={
viewabilityConfigCallbackPairs.current as ViewabilityConfigCallbackPairs
}
nestedScrollEnabled
disableIntervalMomentum
{...props}
/>
)
}

Carousel.displayName = 'CarouselBase'

0 comments on commit 4328791

Please sign in to comment.