diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-06 19:18:58 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-06 19:18:58 -0400 |
| commit | 32d9fcec5f3714186ca86872d085063c11f6f13d (patch) | |
| tree | b400a8d7fb27e0e40c2fe4358a56123fdb22e608 /src/client/views/nodes/trails/PresBox.tsx | |
| parent | c2da7a2f1074ea7c7859394d394ad0a99882a286 (diff) | |
fixed dragging pres elements when presbox is not selected to not display drag element covering entire screen.
Diffstat (limited to 'src/client/views/nodes/trails/PresBox.tsx')
| -rw-r--r-- | src/client/views/nodes/trails/PresBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index aa89b8b6c..71e424f72 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -801,13 +801,13 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() { //regular click @action - regularSelect = (doc: Doc, ref: HTMLElement, drag: HTMLElement, focus: boolean) => { + regularSelect = (doc: Doc, ref: HTMLElement, drag: HTMLElement, focus: boolean, selectPres = true) => { this._selectedArray.clear(); this._selectedArray.set(doc, undefined); this._eleArray.splice(0, this._eleArray.length, ref); this._dragArray.splice(0, this._dragArray.length, drag); focus && this.selectElement(doc); - this.selectPres(); + selectPres && this.selectPres(); } modifierSelect = (doc: Doc, ref: HTMLElement, drag: HTMLElement, focus: boolean, cmdClick: boolean, shiftClick: boolean) => { |
