diff options
author | bob <bcz@cs.brown.edu> | 2019-04-10 14:28:25 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-04-10 14:28:25 -0400 |
commit | e0b3c759880639bf56f9b8b39ea2e38c5cbad8a6 (patch) | |
tree | 5f88f565db34f65897e3cef1ba6d7388bdffa447 /src/client/util/DragManager.ts | |
parent | 9ea0f409cfc2a6c11bb1cf6e00015eb97900507b (diff) |
fixed extra rendering for collections.
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r-- | src/client/util/DragManager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts index 4849ae9f7..f7395578f 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -4,7 +4,7 @@ import { CollectionDockingView } from "../views/collections/CollectionDockingVie import { CollectionView } from "../views/collections/CollectionView"; import { DocumentDecorations } from "../views/DocumentDecorations"; import { DocumentView } from "../views/nodes/DocumentView"; -import { returnFalse } from "../../Utils"; +import { returnFalse, emptyFunction } from "../../Utils"; export function setupDrag(_reference: React.RefObject<HTMLDivElement>, docFunc: () => Document, moveFunc?: DragManager.MoveFunction, copyOnDrop: boolean = false) { let onRowMove = action((e: PointerEvent): void => { @@ -224,7 +224,7 @@ export namespace DragManager { CollectionDockingView.Instance.StartOtherDrag(docs, { pageX: e.pageX, pageY: e.pageY, - preventDefault: () => { }, + preventDefault: emptyFunction, button: 0 }); } |