a tool for shared writing and social publishing

prevent text selection after swipe

+2 -1
+2 -1
components/Blocks/Block.tsx
··· 121 121 useBlockKeyboardHandlers(props, areYouSure, setAreYouSure); 122 122 123 123 const bindSwipe = useDrag( 124 - ({ last, movement: [mx] }) => { 124 + ({ last, movement: [mx], event }) => { 125 125 if (!last) return; 126 126 if (!rep || !props.listData || !entity_set.permissions.write) return; 127 127 if (Math.abs(mx) < SWIPE_THRESHOLD) return; 128 + event?.preventDefault(); 128 129 let { foldedBlocks, toggleFold } = useUIState.getState(); 129 130 if (mx > 0) { 130 131 if (props.previousBlock) {