cleanup paneClickDistance remnants

This commit is contained in:
peterkogo
2025-10-28 11:46:33 +01:00
parent 2fb4933506
commit 5d0887c9db
2 changed files with 2 additions and 3 deletions

View File

@@ -107,7 +107,6 @@ const initPrevValues = {
elementsSelectable: true,
noPanClassName: 'nopan',
rfId: '1',
paneClickDistance: 0,
};
export function StoreUpdater<NodeType extends Node = Node, EdgeType extends Edge = Edge>(

View File

@@ -21,6 +21,7 @@ type PaneProps = {
isSelecting: boolean;
selectionKeyPressed: boolean;
children: ReactNode;
paneClickDistance: number;
} & Partial<
Pick<
ReactFlowProps,
@@ -35,7 +36,6 @@ type PaneProps = {
| 'onPaneMouseMove'
| 'onPaneMouseLeave'
| 'selectionOnDrag'
| 'paneClickDistance'
>
>;
@@ -63,7 +63,7 @@ export function Pane({
selectionKeyPressed,
selectionMode = SelectionMode.Full,
panOnDrag,
paneClickDistance = 0,
paneClickDistance,
selectionOnDrag,
onSelectionStart,
onSelectionEnd,