diff options
author | bob <bcz@cs.brown.edu> | 2019-05-06 15:44:26 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-05-06 15:44:26 -0400 |
commit | 911a8b6af776e58e7bf9d2653c3b604c583a458d (patch) | |
tree | 600349b87043f1205c2c9189ded92bf9a1567c45 /src | |
parent | 8ed190ae29f90442c3589ee692578150b8ad8667 (diff) |
fixed dragging document to new tab to drag an alias.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 9d356cc30..a20a8a93b 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -165,8 +165,8 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu if (e.shiftKey && e.buttons === 1) { if (this.props.isTopMost) { this.startDragging(e.pageX, e.pageY, e.altKey || e.ctrlKey ? "alias" : undefined); - } else { - CollectionDockingView.Instance.StartOtherDrag([this.props.Document], e); + } else if (this.props.Document) { + CollectionDockingView.Instance.StartOtherDrag([Doc.MakeAlias(this.props.Document)], e); } e.stopPropagation(); } else if (this.active) { |