aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-08 14:01:29 -0400
committerbob <bcz@cs.brown.edu>2019-07-08 14:01:29 -0400
commite147622e0002519021c16560d87bffa7a22322c0 (patch)
treefbe9a4fdfe7e9902df980184e42ff2fb3b2b77cd /src
parent65942b78ba3f927beacf19a5d8b751442ba40fda (diff)
fixed shift-dragging of tree view items and add-collection button
Diffstat (limited to 'src')
-rw-r--r--src/client/util/DragManager.ts7
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);