diff options
| author | bobzel <zzzman@gmail.com> | 2024-03-29 17:44:26 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-03-29 17:44:26 -0400 |
| commit | d38f8a80cff0e7e6140fd3ff815210077718746d (patch) | |
| tree | 43e6f8bcab09fa73e8ee17192466be9afbcdcb2a /src/client/views/PropertiesView.tsx | |
| parent | 7ae6431a59604085c4117622c4f5e466daf541a3 (diff) | |
fixed capture offset to target in link following. fixed links to appear in lightbox and to not disappear when dragged.
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
| -rw-r--r-- | src/client/views/PropertiesView.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx index 0de44b62b..dc814bb16 100644 --- a/src/client/views/PropertiesView.tsx +++ b/src/client/views/PropertiesView.tsx @@ -71,7 +71,7 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps } @computed get selectedLink() { - return this.selectedDocumentView?.ComponentView instanceof LinkBox ? this.selectedDocumentView.Document : LinkManager.Instance.currentLink; + return LinkManager.Instance.currentLink; } @computed get selectedLayoutDoc() { @@ -1615,7 +1615,6 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps render() { const isNovice = Doc.noviceMode; - const hasSelectedAnchor = LinkManager.Links(this.sourceAnchor).includes(this.selectedLink!); if (!this.selectedDoc && !this.isPres) { return ( <div className="propertiesView" style={{ width: this._props.width }}> |
