aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-21 13:41:25 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-21 13:41:25 -0400
commit60f9122ea31d660d60d5429890c4eb0ef6d8613b (patch)
tree0231994ccdf4a5e2fb30f77d3fd73a09f1fb4b67 /src/client/util/DragManager.ts
parentd78c651322ad228152b862eaa378946fe65cc9f9 (diff)
following link without viewdoc opens it to right
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r--src/client/util/DragManager.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index 78cae4ff7..11530ef09 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -203,11 +203,9 @@ export namespace DragManager {
export let StartDragFunctions: (() => void)[] = [];
export function StartDocumentDrag(eles: HTMLElement[], dragData: DocumentDragData, downX: number, downY: number, options?: DragOptions) {
- console.log("outside", dragData.userDropAction, dragData.dropAction);
runInAction(() => StartDragFunctions.map(func => func()));
StartDrag(eles, dragData, downX, downY, options,
(dropData: { [id: string]: any }) => {
- console.log("DRAG", dragData.userDropAction, dragData.dropAction);
(dropData.droppedDocuments = dragData.userDropAction === "alias" || (!dragData.userDropAction && dragData.dropAction === "alias") ?
dragData.draggedDocuments.map(d => Doc.MakeAlias(d)) :
dragData.userDropAction === "copy" || (!dragData.userDropAction && dragData.dropAction === "copy") ?