aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-22 00:20:26 -0400
committerbobzel <zzzman@gmail.com>2020-10-22 00:20:26 -0400
commit05257784ed7c0e6ed9ce5375cd5e3cccc04c7bec (patch)
treee0e91a3d8c141028627295a9deaadfcf9b48731d /src
parenta61527764cf7db2f7159730504dc70736219035d (diff)
fixed problem when dragging preselements when sometimes the whole screen turns gray because the dragged item has no width/height
Diffstat (limited to 'src')
-rw-r--r--src/client/views/presentationview/PresElementBox.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/presentationview/PresElementBox.tsx b/src/client/views/presentationview/PresElementBox.tsx
index 6ebb7d623..b260bc00d 100644
--- a/src/client/views/presentationview/PresElementBox.tsx
+++ b/src/client/views/presentationview/PresElementBox.tsx
@@ -142,6 +142,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc
e.preventDefault();
if (element && !(e.ctrlKey || e.metaKey)) {
if (PresBox.Instance._selectedArray.includes(this.rootDoc)) {
+ PresBox.Instance.regularSelect(this.rootDoc, this._itemRef.current!, this._dragRef.current!, false);
setupMoveUpEvents(this, e, this.startDrag, emptyFunction, emptyFunction);
} else {
setupMoveUpEvents(this, e, ((e: PointerEvent) => {