diff options
author | bobzel <zzzman@gmail.com> | 2024-05-03 11:02:07 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-05-03 11:02:07 -0400 |
commit | e77b55c771a2bd3ba49169185edd9ed2099de1c6 (patch) | |
tree | f070e9e64ecaf251e6708b8ce4d722f121a6d039 /src/client/views/nodes/DocumentView.tsx | |
parent | 4c6640a630b541611a55c54cd392193119579de2 (diff) | |
parent | f927a585c75a20629379bcb34d1483c0ca9d8db9 (diff) |
Merge branch 'nathan-starter' into restoringEslint
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 4a5c32b4c..3191e04db 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -350,7 +350,7 @@ export class DocumentViewInternal extends DocComponent<FieldViewProps & Document const sendToBack = e.altKey; this._singleClickFunc = // prettier-ignore - clickFunc ?? (() => (sendToBack ? documentView._props.bringToFront?.(this.Document, true) : + clickFunc ?? (() => (sendToBack ? documentView._props.bringToFront?.(this.Document, true) : this._props.select(e.ctrlKey||e.shiftKey, e.metaKey))); const waitFordblclick = this._props.waitForDoubleClickToClick?.() ?? this.Document.waitForDoubleClickToClick; if ((clickFunc && waitFordblclick !== 'never') || waitFordblclick === 'always') { @@ -1319,17 +1319,17 @@ export class DocumentView extends DocComponent<DocumentViewProps>() { screenToLocalScale = () => this._props.ScreenToLocalTransform().Scale; isSelected = () => this.IsSelected; select = (extendSelection: boolean, focusSelection?: boolean) => { - if (this.IsSelected && DocumentView.Selected().length > 1) DocumentView.DeselectView(this); - else { - DocumentView.SelectView(this, extendSelection); - if (focusSelection) { - DocumentView.showDocument(this.Document, { - willZoomCentered: true, - zoomScale: 0.9, - zoomTime: 500, - }); - } + // if (this.IsSelected && DocumentView.Selected().length > 1) DocumentView.DeselectView(this); + // else { + DocumentView.SelectView(this, extendSelection); + if (focusSelection) { + DocumentView.showDocument(this.Document, { + willZoomCentered: true, + zoomScale: 0.9, + zoomTime: 500, + }); } + //} }; backgroundColor = () => this._docViewInternal?.backgroundBoxColor; DataTransition = () => this._props.DataTransition?.() || StrCast(this.Document.dataTransition); |