Fix for selecting issue

This commit is contained in:
Piotr Pekala
2019-07-02 04:45:23 -07:00
parent 02f42c6681
commit 3a1111c82d
3 changed files with 27 additions and 24 deletions

View File

@ -267,7 +267,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
const onContextMenu = this.selectionTool.contextMenuOpened.subscribe((event) => {
const selectedItems = this.selectionManager.getSelected();
if (selectedItems.length === 0 || !(event instanceof MouseEvent)) return;
if (selectedItems.length < 2 || !(event instanceof MouseEvent)) return;
let drawings: Drawing[] = [];
let nodes: Node[] = [];