cleanup
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -44,8 +44,6 @@ interface DragTransform {
|
||||
scale?: number;
|
||||
}
|
||||
|
||||
|
||||
|
||||
type EnsureDocumentSizeFn = (doc: Document | null) => DocumentSizeInfo | null;
|
||||
|
||||
type ResolveBaseMetricsFn = (
|
||||
|
||||
Reference in New Issue
Block a user