fix
This commit is contained in:
@@ -35,7 +35,7 @@ export const useDeskPointer = ({
|
||||
onEntryPointer,
|
||||
onDocumentStackSelect,
|
||||
onPromoteSelection,
|
||||
onDocumentOpen,
|
||||
onInspectDocument,
|
||||
selectedDocumentIds,
|
||||
detailPanelOpen,
|
||||
onCloseDetailPanel,
|
||||
@@ -327,8 +327,7 @@ export const useDeskPointer = ({
|
||||
const stillSelected = Array.isArray(selectedDocumentIds)
|
||||
&& selectedDocumentIds.includes(doc.id);
|
||||
if (isPrimaryRelease && stillSelected) {
|
||||
const useSelection = pointerState.selectedAtDown && pointerState.selectionCountAtDown > 0;
|
||||
safeInvoke(onDocumentOpen, doc.id, { useSelection });
|
||||
safeInvoke(onInspectDocument, doc.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -338,7 +337,7 @@ export const useDeskPointer = ({
|
||||
},
|
||||
[
|
||||
handlePointerUp,
|
||||
onDocumentOpen,
|
||||
onInspectDocument,
|
||||
onDocumentStackSelect,
|
||||
onEntryPointer,
|
||||
resetLongPressState,
|
||||
|
||||
Reference in New Issue
Block a user