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