diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-21 14:40:04 -0400 | 
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-21 14:40:04 -0400 | 
| commit | 0dd3bbfc119d48bd2c32f8e55b7051e3ddc530c3 (patch) | |
| tree | d869df5eb544e447d0c0b3f38e5a1b586783bddf /src/client/util/DragManager.ts | |
| parent | 3e22a44461095d95062e3b809b525a0a87342ac3 (diff) | |
restored experimental templates.  fixed (enabled) pointer events on nested column/row views when container is active.  got rid of freezeDimensions which wasn't needed and introduced artifacts for views that set it (timeView, GridView)
Diffstat (limited to 'src/client/util/DragManager.ts')
| -rw-r--r-- | src/client/util/DragManager.ts | 11 | 
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts index 2b62945af..09b463c2f 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -223,10 +223,13 @@ export namespace DragManager {              if (docDragData && !docDragData.droppedDocuments.length) {                  docDragData.dropAction = dragData.userDropAction || dragData.dropAction;                  docDragData.droppedDocuments = -                    await Promise.all(dragData.draggedDocuments.map(async d => !dragData.isDocDecorationMove && !dragData.userDropAction && ScriptCast(d.onDragStart) ? addAudioTag(ScriptCast(d.onDragStart).script.run({ this: d }).result) : -                        docDragData.dropAction === "alias" ? Doc.MakeAlias(d) : -                            docDragData.dropAction === "proto" ? Doc.GetProto(d) : -                                docDragData.dropAction === "copy" ? (await Doc.MakeClone(d)).clone : d)); +                    await Promise.all(dragData.draggedDocuments.map(async d =>  +                        !dragData.isDocDecorationMove && !dragData.userDropAction && ScriptCast(d.onDragStart) ?  +                        addAudioTag(ScriptCast(d.onDragStart).script.run({ this: d }).result) : +                            docDragData.dropAction === "alias" ? Doc.MakeAlias(d) : +                                docDragData.dropAction === "proto" ? Doc.GetProto(d) : +                                    docDragData.dropAction === "copy" ?  +                                        (await Doc.MakeClone(d)).clone : d));                  !["same", "proto"].includes(docDragData.dropAction as any) && docDragData.droppedDocuments.forEach((drop: Doc, i: number) => {                      const dragProps = Cast(dragData.draggedDocuments[i].removeDropProperties, listSpec("string"), []);                      const remProps = (dragData?.removeDropProperties || []).concat(Array.from(dragProps));  | 
