diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-08 14:01:29 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-08 14:01:29 -0400 |
| commit | e147622e0002519021c16560d87bffa7a22322c0 (patch) | |
| tree | fbe9a4fdfe7e9902df980184e42ff2fb3b2b77cd | |
| parent | 65942b78ba3f927beacf19a5d8b751442ba40fda (diff) | |
fixed shift-dragging of tree view items and add-collection button
| -rw-r--r-- | src/client/util/DragManager.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts index 6c2340d04..cb71db2c5 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -43,7 +43,12 @@ export function SetupDrag( e.stopPropagation(); if (e.shiftKey && CollectionDockingView.Instance) { e.persist(); - CollectionDockingView.Instance.StartOtherDrag(e, [await docFunc()]); + CollectionDockingView.Instance.StartOtherDrag({ + pageX: e.pageX, + pageY: e.pageY, + preventDefault: emptyFunction, + button: 0 + }, [await docFunc()]); } else { document.addEventListener("pointermove", onRowMove); document.addEventListener("pointerup", onRowUp); |
