tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
298
fork
atom
a tool for shared writing and social publishing
298
fork
atom
overview
issues
31
pulls
3
pipelines
prevent text selection after swipe
awarm.space
3 weeks ago
1561298a
c5602126
+2
-1
1 changed file
expand all
collapse all
unified
split
components
Blocks
Block.tsx
+2
-1
components/Blocks/Block.tsx
reviewed
···
121
121
useBlockKeyboardHandlers(props, areYouSure, setAreYouSure);
122
122
123
123
const bindSwipe = useDrag(
124
124
-
({ last, movement: [mx] }) => {
124
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
128
+
event?.preventDefault();
128
129
let { foldedBlocks, toggleFold } = useUIState.getState();
129
130
if (mx > 0) {
130
131
if (props.previousBlock) {