fix: fixed swiping during deal holding

This commit is contained in:
2025-08-20 22:56:18 +04:00
parent 32ea2aa060
commit e3acf3aa89
2 changed files with 6 additions and 1 deletions

View File

@ -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" }}

View File

@ -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>