diff options
author | Michael Foiani <sotech117@michaels-mbp-3.devices.brown.edu> | 2022-04-20 14:30:25 -0400 |
---|---|---|
committer | Michael Foiani <sotech117@michaels-mbp-3.devices.brown.edu> | 2022-04-20 14:30:25 -0400 |
commit | 48f628afe1f814c4e604ec306d721a5afb991c10 (patch) | |
tree | 4fbda3a44265e3b0c62978dee6943070c44d3bb3 /src/client/util/DragManager.ts | |
parent | ea042b836c8428db02c131bfdddda3c055a18ddf (diff) | |
parent | c1aead50030121554bf95ad392c80e042ec9c4d6 (diff) |
Merge branch 'presentmode-mfoiani' into recording-jenny
Merge with jenny for video recording.
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r-- | src/client/util/DragManager.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts index 411fc6d11..47b7ce0e7 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -211,6 +211,10 @@ export namespace DragManager { options?: DragOptions, dropEvent?: () => any ) { + // stop an 'accidental' on-click drag that may have occured if the user is in presenting mode + // note: dragData.dropAction is only undefined when the element itself being dragged without being selected + if (Doc.UserDoc()?.presentationMode === 'recording' && dragData.dropAction === undefined) return false; + const addAudioTag = (dropDoc: any) => { dropDoc && !dropDoc.creationDate && (dropDoc.creationDate = new DateField); dropDoc instanceof Doc && DocUtils.MakeLinkToActiveAudio(() => dropDoc); |