aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-18 10:28:43 -0400
committerbob <bcz@cs.brown.edu>2019-03-18 10:28:43 -0400
commitd5304e13839830c60c0c5698849535b0605e3c32 (patch)
treed9d4df5261d8f13a68c999822f03fa0ed78983c9 /src/client/views/nodes/DocumentView.tsx
parent5be91465a7d534587a483d5631df705468910839 (diff)
fixed drag drop and loading of pdfs
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 6a3967b3b..fbd58ef7e 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -165,7 +165,9 @@ export class DocumentView extends React.Component<DocumentViewProps> {
const [left, top] = this.props.ScreenToLocalTransform().inverse().transformPoint(0, 0);
let dragData: { [id: string]: any } = {};
dragData["documentView"] = this;
- dragData[dropAliasOfDraggedDoc ? "documentToAlias" : "document"] = this.props.Document;
+ if (dropAliasOfDraggedDoc)
+ dragData["documentToAlias"] = this.props.Document;
+ dragData["document"] = this.props.Document;
dragData["xOffset"] = x - left;
dragData["yOffset"] = y - top;
DragManager.StartDrag(this._mainCont.current, dragData, {