diff options
author | bobzel <zzzman@gmail.com> | 2022-03-28 12:20:07 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-03-28 12:20:07 -0400 |
commit | 2c3264bca271af170b620cfc44ecdfafb77aacc0 (patch) | |
tree | d147bdee6a2dcb831aa47cc17317820e5068ace0 /src/client/util/DragManager.ts | |
parent | e18c52d3937d4dccc2e9284b32bb86b1e7dac45b (diff) |
enabled dragging documents onto tab bar without shift. modified link pivot document to automatically update when links are added and be a stacking view
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 c9c499fff..0d6a77f71 100644 --- a/src/client/util/DragManager.ts +++ b/src/client/util/DragManager.ts @@ -458,9 +458,9 @@ export namespace DragManager { if (dragData instanceof DocumentDragData) { dragData.userDropAction = e.ctrlKey && e.altKey ? "copy" : e.ctrlKey ? "alias" : dragData.defaultDropAction; } - if (e?.shiftKey && dragData.draggedDocuments.length === 1) { + if (((e.target as any)?.className === "lm_tabs" || e?.shiftKey) && dragData.draggedDocuments.length === 1) { dragData.dropAction = dragData.userDropAction || "same"; - if (dragData.dropAction === "move") { + if (dragData.dropAction === "move" || dragData.dropAction === "same") { dragData.removeDocument?.(dragData.draggedDocuments[0]); } AbortDrag(); |