fix: fixed swiping during deal holding
This commit is contained in:
@ -108,6 +108,12 @@ const FunnelDnd = <
|
|||||||
return (
|
return (
|
||||||
<Swiper
|
<Swiper
|
||||||
ref={swiperRef}
|
ref={swiperRef}
|
||||||
|
onTouchStart={swiper => {
|
||||||
|
swiper.allowTouchMove = !activeItem;
|
||||||
|
}}
|
||||||
|
onTouchMove={swiper => {
|
||||||
|
swiper.allowTouchMove = !activeItem;
|
||||||
|
}}
|
||||||
className={classes["swiper-container"]}
|
className={classes["swiper-container"]}
|
||||||
slidesPerView={1.1}
|
slidesPerView={1.1}
|
||||||
style={{ paddingLeft: "10vw", paddingRight: "2vw" }}
|
style={{ paddingLeft: "10vw", paddingRight: "2vw" }}
|
||||||
|
|||||||
@ -24,7 +24,6 @@ const DragHandle = ({ id, children, style, disabled }: Props) => {
|
|||||||
touchAction: "auto",
|
touchAction: "auto",
|
||||||
...style,
|
...style,
|
||||||
}}
|
}}
|
||||||
className={disabled ? "" : "swiper-no-swiping"}
|
|
||||||
ref={setNodeRef}>
|
ref={setNodeRef}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user