Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Fix position of context menu in the list perspective

sytolk2111d54a08df
diff --git a/app/perspectives/list/components/MainContainer.tsx b/app/perspectives/list/components/MainContainer.tsx
index 9c15b7378..d4289e1e9 100644
--- a/app/perspectives/list/components/MainContainer.tsx
+++ b/app/perspectives/list/components/MainContainer.tsx
@@ -623,7 +623,14 @@ function GridPerspective(props: Props) {
layoutType={layoutType.current}
showTags={showTags.current}
openFsEntry={props.openFsEntry}
- handleGridContextMenu={handleGridContextMenu}
+ handleGridContextMenu={(
+ event: React.MouseEvent<HTMLDivElement>,
+ fsEntry: TS.FileSystemEntry
+ ) => {
+ setMouseX(event.clientX);
+ setMouseY(event.clientY);
+ handleGridContextMenu(event, fsEntry);
+ }}
handleGridCellDblClick={handleGridCellDblClick}
handleGridCellClick={handleGridCellClick}
/>