aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/trails/PresElementBox.tsx
diff options
context:
space:
mode:
authorljungster <parkerljung@gmail.com>2022-02-15 16:35:47 -0500
committerljungster <parkerljung@gmail.com>2022-02-15 16:35:47 -0500
commitabab63f89344e5bbbf0731e81e3ab7ddb0942664 (patch)
tree68923adf7d0f07d133d6d629e696ee533da9a3f4 /src/client/views/nodes/trails/PresElementBox.tsx
parent66fb0e4bbf88a5e9bcb5869dd7c8b8a7714de024 (diff)
added commits
Diffstat (limited to 'src/client/views/nodes/trails/PresElementBox.tsx')
-rw-r--r--src/client/views/nodes/trails/PresElementBox.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx
index 238d025dc..b30e8cc13 100644
--- a/src/client/views/nodes/trails/PresElementBox.tsx
+++ b/src/client/views/nodes/trails/PresElementBox.tsx
@@ -169,6 +169,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc
/**
* Function to drag and drop the pres element to a diferent location
*/
+ //TODO: this is what you need to look into
startDrag = (e: PointerEvent) => {
const miniView: boolean = this.toolbarWidth <= 100;
const activeItem = this.rootDoc;
@@ -291,6 +292,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc
return width;
}
+ // TODO: this is what you were looking for
@computed get mainItem() {
const isSelected: boolean = PresBox.Instance._selectedArray.has(this.rootDoc);
const toolbarWidth: number = this.toolbarWidth;