Skip to content

Commit b89aaeb

Browse files
committed
Fix context menu location
1 parent 4c956e2 commit b89aaeb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/context-menu/ContextMenu.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ export function ContextMenu<TDataItem>({
117117
graphComponent.selection.add(event.item)
118118
}
119119
setMenuVisible(true)
120-
setMenuLocation(
121-
graphComponent.viewToPageCoordinates(
122-
graphComponent.worldToViewCoordinates(event.queryLocation)
123-
)
124-
)
120+
setMenuLocation(graphComponent.worldToViewCoordinates(event.queryLocation))
125121
// populate the menu
126122
populateContextMenu(event)
127123
}

0 commit comments

Comments
 (0)