Skip to content

Commit

Permalink
Merge pull request #142 from Adrian3PG/fix-partialVisibilityGutter
Browse files Browse the repository at this point in the history
Fix partialVisibilityGutter when showing more than one slide
  • Loading branch information
yi authored Apr 1, 2020
2 parents b78d078 + 5a5aba2 commit 47c84c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CarouselItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ const CarouselItems = ({
(partialVisbile || partialVisible) &&
partialVisibilityGutter &&
!notEnoughChildren
? itemWidth - partialVisibilityGutter
? itemWidth -
partialVisibilityGutter / state.slidesToShow
: itemWidth
}px`
: "auto"
Expand Down

0 comments on commit 47c84c0

Please sign in to comment.