diff options
| author | bobzel <zzzman@gmail.com> | 2021-12-10 13:36:12 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-12-10 13:36:12 -0500 |
| commit | e54c1ef16b4ce0a324fac3747defdc6501834de5 (patch) | |
| tree | e956e5bbe07e53a36e5ead3d637e6f7c2b01671b /src/client/views/nodes/trails/PresElementBox.tsx | |
| parent | 8176b94970b86bd3c1669130f6fef2ccd70d0b84 (diff) | |
| parent | f8ce34c8ed42646691d1e392effe79bc27daf810 (diff) | |
Merge branch 'master' into ink_v1
Diffstat (limited to 'src/client/views/nodes/trails/PresElementBox.tsx')
| -rw-r--r-- | src/client/views/nodes/trails/PresElementBox.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx index 5e713c3cf..238d025dc 100644 --- a/src/client/views/nodes/trails/PresElementBox.tsx +++ b/src/client/views/nodes/trails/PresElementBox.tsx @@ -166,6 +166,9 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc e.preventDefault(); } + /** + * Function to drag and drop the pres element to a diferent location + */ startDrag = (e: PointerEvent) => { const miniView: boolean = this.toolbarWidth <= 100; const activeItem = this.rootDoc; @@ -244,6 +247,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc e.stopPropagation(); }); + // set the value/title of the individual pres element @undoBatch @action onSetValue = (value: string) => { |
