Skip to content

Commit 6e69c10

Browse files
committed
fix drag options
1 parent 87d5074 commit 6e69c10

File tree

1 file changed

+3
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]

1 file changed

+3
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2458,11 +2458,13 @@ const WorkflowContent = React.memo(() => {
24582458
connectionLineType={ConnectionLineType.SmoothStep}
24592459
onPaneClick={onPaneClick}
24602460
onEdgeClick={onEdgeClick}
2461+
onPaneContextMenu={(e) => e.preventDefault()}
2462+
onNodeContextMenu={(e) => e.preventDefault()}
24612463
onPointerMove={handleCanvasPointerMove}
24622464
onPointerLeave={handleCanvasPointerLeave}
24632465
elementsSelectable={true}
24642466
selectionOnDrag={true}
2465-
panOnDrag={[1, 2]}
2467+
panOnDrag={[0, 1]}
24662468
multiSelectionKeyCode={['Meta', 'Control']}
24672469
nodesConnectable={effectivePermissions.canEdit}
24682470
nodesDraggable={effectivePermissions.canEdit}

0 commit comments

Comments
 (0)