diff options
author | mehekj <mehek.jethani@gmail.com> | 2023-01-28 22:39:23 -0500 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2023-01-28 22:39:23 -0500 |
commit | 9f139c7f0f571bdfea8ce99fc0a507724eb8fd74 (patch) | |
tree | 4de6642112f9c6c2df1a85cf8fa9ed700bb94cbd /src/client/util/DragManager.ts | |
parent | 9d2af1180f0dd5af5ab86b922cd8b0cdfcf4ea09 (diff) | |
parent | 95b8a5a2b470d3118b6eeac484a45b23df2830b4 (diff) |
Merge branch 'master' into schema-mehek
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 d0690fa10..a56f87075 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -251,8 +251,8 @@ export namespace DragManager { } // drags a linker button and creates a link on drop - export function StartLinkDrag(ele: HTMLElement, sourceView: DocumentView, sourceDocGetAnchor: undefined | (() => Doc), downX: number, downY: number, options?: DragOptions) { - StartDrag([ele], new DragManager.LinkDragData(sourceView, () => sourceDocGetAnchor?.() ?? sourceView.rootDoc), downX, downY, options); + export function StartLinkDrag(ele: HTMLElement, sourceView: DocumentView, sourceDocGetAnchor: undefined | ((addAsAnnotation: boolean) => Doc), downX: number, downY: number, options?: DragOptions) { + StartDrag([ele], new DragManager.LinkDragData(sourceView, () => sourceDocGetAnchor?.(true) ?? sourceView.rootDoc), downX, downY, options); } // drags a column from a schema view |