From f8c4c843c256db45cfe73b68aa1050768a62611f Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Tue, 28 Apr 2026 23:19:59 -0400 Subject: [PATCH] don't enable swipe gestures if not touch --- components/Blocks/Block.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/Blocks/Block.tsx b/components/Blocks/Block.tsx index 1b34aa9c..66606905 100644 --- a/components/Blocks/Block.tsx +++ b/components/Blocks/Block.tsx @@ -124,6 +124,12 @@ export const Block = memo(function Block( const bindSwipe = useDrag( ({ last, movement: [mx], event }) => { if (!last) return; + if ( + event && + "pointerType" in event && + event.pointerType !== "touch" + ) + return; if (!rep || !props.listData || !entity_set.permissions.write) return; if (Math.abs(mx) < SWIPE_THRESHOLD) return; event?.preventDefault(); -- 2.51.2