This commit is contained in:
2025-11-26 11:00:21 +01:00
parent 0a4a3ae35c
commit e5e71cc5f8
2 changed files with 0 additions and 15 deletions
-13
View File
@@ -791,7 +791,6 @@ const DesktopWorkspace: React.FC<DocumentsViewProps> = ({
onPromoteSelection: handlePromoteSelection,
selectedDocumentIds,
onClearSelection: clearSelection,
onDocumentClick: passThroughProps.onDocumentClick,
onSelect: (descriptorOrDescriptors: any, event: any) => {
const descriptors = Array.isArray(descriptorOrDescriptors)
? descriptorOrDescriptors
@@ -845,7 +844,6 @@ function DesktopWorkspaceView({
overlayOriginRect,
overlayOriginTransform,
overlayDocument,
onDocumentClick,
onPromoteSelection,
selectedDocumentIds,
onClearSelection,
@@ -872,16 +870,6 @@ function DesktopWorkspaceView({
[documentLookup, onDocumentActivate],
);
const handleDeskDocumentClick = useCallback(
(docId: Identifier, event: any) => {
const doc = documentLookup.get(String(docId));
if (doc && onDocumentClick) {
onDocumentClick(doc, event);
}
},
[documentLookup, onDocumentClick],
);
const { handlePointerDown, handlePointerMove, handlePointerUp, handlePointerCancel } =
useDocumentDrag({
engine,
@@ -917,7 +905,6 @@ function DesktopWorkspaceView({
handlePointerMove,
handlePointerUp,
handlePointerCancel,
onDocumentClick: handleDeskDocumentClick,
onPromoteSelection,
onDocumentActivate: handleDeskDocumentActivate,
selectedDocumentIds,
-2
View File
@@ -44,8 +44,6 @@ interface DragTransform {
scale?: number;
}
type EnsureDocumentSizeFn = (doc: Document | null) => DocumentSizeInfo | null;
type ResolveBaseMetricsFn = (