From e3acf3aa891f5770d9876bcc8857fb303922ebbb Mon Sep 17 00:00:00 2001 From: AlexSserb Date: Wed, 20 Aug 2025 22:56:18 +0400 Subject: [PATCH] fix: fixed swiping during deal holding --- src/components/dnd/FunnelDnd/FunnelDnd.tsx | 6 ++++++ src/components/dnd/SortableItem/DragHandle.tsx | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/dnd/FunnelDnd/FunnelDnd.tsx b/src/components/dnd/FunnelDnd/FunnelDnd.tsx index b6560ee..bbedc95 100644 --- a/src/components/dnd/FunnelDnd/FunnelDnd.tsx +++ b/src/components/dnd/FunnelDnd/FunnelDnd.tsx @@ -108,6 +108,12 @@ const FunnelDnd = < return ( { + swiper.allowTouchMove = !activeItem; + }} + onTouchMove={swiper => { + swiper.allowTouchMove = !activeItem; + }} className={classes["swiper-container"]} slidesPerView={1.1} style={{ paddingLeft: "10vw", paddingRight: "2vw" }} diff --git a/src/components/dnd/SortableItem/DragHandle.tsx b/src/components/dnd/SortableItem/DragHandle.tsx index 79c8aad..cd6a3d6 100644 --- a/src/components/dnd/SortableItem/DragHandle.tsx +++ b/src/components/dnd/SortableItem/DragHandle.tsx @@ -24,7 +24,6 @@ const DragHandle = ({ id, children, style, disabled }: Props) => { touchAction: "auto", ...style, }} - className={disabled ? "" : "swiper-no-swiping"} ref={setNodeRef}> {children}