a tool for shared writing and social publishing

disable focus on long press for text blocks

was breaking selection on mobile

+2 -1
+2 -1
components/Blocks/Block.tsx
··· 30 30 import { CodeBlock } from "./CodeBlock"; 31 31 import { HorizontalRule } from "./HorizontalRule"; 32 32 import { deepEquals } from "src/utils/deepEquals"; 33 + import { isTextBlock } from "src/utils/isTextBlock"; 33 34 34 35 export type Block = { 35 36 factID: string; ··· 63 64 64 65 let mouseHandlers = useBlockMouseHandlers(props); 65 66 66 - // focus block on longpress, shouldnt the type be based on the block type (?) 67 67 let { isLongPress, handlers } = useLongPress(() => { 68 + if (isTextBlock[props.type]) return; 68 69 if (isLongPress.current) { 69 70 focusBlock( 70 71 { type: props.type, value: props.entityID, parent: props.parent },