fix: prevent adjacent slide peeking in ProductCard Swiper
This commit is contained in:
@@ -80,11 +80,13 @@ const ProductCardInner = ({ product, mediaHeight = 200, actions }: Props) => {
|
||||
{imageUrls.length ? (
|
||||
<Box onMouseMove={!isMobile ? onMouseMove : undefined} sx={{ height: mediaHeight, overflow: 'hidden' }}>
|
||||
<Swiper
|
||||
slidesPerView={1}
|
||||
spaceBetween={0}
|
||||
allowTouchMove={!isMobile}
|
||||
onSwiper={(s) => {
|
||||
swiperRef.current = s
|
||||
}}
|
||||
allowTouchMove={!isMobile}
|
||||
style={{ width: '100%', height: mediaHeight }}
|
||||
style={{ width: '100%', height: mediaHeight, overflow: 'hidden' }}
|
||||
>
|
||||
{imageUrls.map((url) => (
|
||||
<SwiperSlide key={url}>
|
||||
|
||||
Reference in New Issue
Block a user