diff options
author | bobzel <zzzman@gmail.com> | 2023-12-29 02:08:29 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-29 02:08:29 -0500 |
commit | bc8d4b46cdc836cbd59527ebfd1d891949d6e5ff (patch) | |
tree | 9b52ac95ff5ef145f0f7b7c2fc170e90498f7a43 /src/client/views/nodes/DocumentView.tsx | |
parent | 865478933af8166cb699cbe4a2653aa52423dedb (diff) |
fixed displaying zoomed text annotations when following links/trails and for PDFs/Web pages with selected text.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 823ec885b..336f65b85 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -1338,13 +1338,13 @@ export class DocumentView extends ObservableReactComponent<DocumentViewProps> { } @observable public static LongPress = false; @observable public static ExploreMode = false; - @observable public static LastPressedSidebarBtn: Opt<Doc>; // bcz: this is a hack to handle highlighting buttons in the leftpanel menu .. need to find a cleaner approach + @observable public static LastPressedSidebarBtn: Opt<Doc> = undefined; // bcz: this is a hack to handle highlighting buttons in the leftpanel menu .. need to find a cleaner approach @computed public static get exploreMode() { return () => (DocumentView.ExploreMode ? ScriptField.MakeScript('CollectionBrowseClick(documentView, clientX, clientY)', { documentView: 'any', clientX: 'number', clientY: 'number' })! : undefined); } @observable public docView: DocumentViewInternal | undefined | null = undefined; - @observable public textHtmlOverlay: Opt<string>; - @observable public textHtmlOverlayTime: Opt<number>; + @observable public textHtmlOverlay: Opt<string> = undefined; + @observable public textHtmlOverlayTime: Opt<number> = undefined; @observable private _isHovering = false; public htmlOverlayEffect: Opt<Doc>; |