diff options
| author | bob <bcz@cs.brown.edu> | 2020-02-18 14:00:06 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-02-18 14:00:06 -0500 |
| commit | 6d7f56cead95b1ab59a62ccc21ee52491386a655 (patch) | |
| tree | b04ad3c04ba2604f0df56afd7e805e403862a41e /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | 3c287ad66d84bf4fbd6f626f1590fdd82610762b (diff) | |
cleaned up context menu ordering
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 59c3033e9..fa8a203b4 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -965,6 +965,7 @@ export class CollectionFreeFormView extends CollectionSubView(PanZoomDocument) { // } onContextMenu = (e: React.MouseEvent) => { + if (this.props.children && this.props.annotationsKey) return; const layoutItems: ContextMenuProps[] = []; layoutItems.push({ description: "reset view", event: () => { this.props.Document._panX = this.props.Document._panY = 0; this.props.Document.scale = 1; }, icon: "compress-arrows-alt" }); |
