This commit is contained in:
2025-11-13 13:22:10 +01:00
parent 98165f71b0
commit dfbd47f219
12 changed files with 93 additions and 107 deletions
@@ -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,