diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-16 21:26:04 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-16 21:26:04 -0400 |
| commit | ec0510a3d80f065ab8aa1e5280e50d689628f008 (patch) | |
| tree | f358bbdd7f3bc8a2fd33f78b149b967e72fd2076 /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | d5be520f31d7afe108071734fdc47a22d80f8f45 (diff) | |
fixed dropping into a group using title bar (embed key)
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 6a3be2d50..0ee2fad2e 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -235,7 +235,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P @action internalDocDrop(e: Event, de: DragManager.DropEvent, docDragData: DragManager.DocumentDragData, xp: number, yp: number) { - if (!this.ChildDrag && this.props.layerProvider?.(this.props.Document) !== false && this.props.Document._isGroup) return false; + if (!de.embedKey && !this.ChildDrag && this.props.layerProvider?.(this.props.Document) !== false && this.props.Document._isGroup) return false; if (!super.onInternalDrop(e, de)) return false; const refDoc = docDragData.droppedDocuments[0]; const [xpo, ypo] = this.getTransformOverlay().transformPoint(de.x, de.y); |
