🚸 (editor) Remove blocks pointer events only in analytics

This commit is contained in:
Baptiste Arnaud
2024-01-26 10:38:44 +01:00
parent eda0f3920c
commit bd3439bbf6
5 changed files with 21 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ export const BlockNode = ({
setFocusedGroupId,
previewingEdge,
isReadOnly,
isAnalytics,
previewingBlock,
} = useGraph()
const { mouseOverBlock, setMouseOverBlock } = useBlockDnd()
@@ -215,7 +216,7 @@ export const BlockNode = ({
data-testid={`block ${block.id}`}
w="full"
className="prevent-group-drag"
pointerEvents={isReadOnly || isDraggingGraph ? 'none' : 'auto'}
pointerEvents={isAnalytics || isDraggingGraph ? 'none' : 'auto'}
>
<HStack
flex="1"