From bc8d4b46cdc836cbd59527ebfd1d891949d6e5ff Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 29 Dec 2023 02:08:29 -0500 Subject: fixed displaying zoomed text annotations when following links/trails and for PDFs/Web pages with selected text. --- src/client/views/nodes/DocumentView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/views/nodes') 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 { } @observable public static LongPress = false; @observable public static ExploreMode = false; - @observable public static LastPressedSidebarBtn: Opt; // bcz: this is a hack to handle highlighting buttons in the leftpanel menu .. need to find a cleaner approach + @observable public static LastPressedSidebarBtn: Opt = 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; - @observable public textHtmlOverlayTime: Opt; + @observable public textHtmlOverlay: Opt = undefined; + @observable public textHtmlOverlayTime: Opt = undefined; @observable private _isHovering = false; public htmlOverlayEffect: Opt; -- cgit v1.2.3-70-g09d2