From 8538a83baf57d7015b62b4ebc22d2bd7318f9d16 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 19 Jan 2021 15:02:03 -0500 Subject: fixed isPushpin annotation behavior outside of PDFs. fixed link follow highlighting to go away when target is hidden. --- src/client/views/pdf/PDFMenu.tsx | 4 ++-- src/client/views/pdf/PDFViewer.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/views/pdf') diff --git a/src/client/views/pdf/PDFMenu.tsx b/src/client/views/pdf/PDFMenu.tsx index 1f8872e3d..603e26021 100644 --- a/src/client/views/pdf/PDFMenu.tsx +++ b/src/client/views/pdf/PDFMenu.tsx @@ -39,7 +39,7 @@ export class PDFMenu extends AntimodeMenu { @observable public _colorBtn = false; @observable public Highlighting: boolean = false; - @observable public Status: "pdf" | "annotation" | "" = ""; + @observable public Status: "marquee" | "annotation" | "" = ""; public StartDrag: (e: PointerEvent, ele: HTMLElement) => void = unimplementedFunction; public Highlight: (color: string) => Opt = (color: string) => undefined; @@ -119,7 +119,7 @@ export class PDFMenu extends AntimodeMenu { } render() { - const buttons = this.Status === "pdf" ? + const buttons = this.Status === "marquee" ? [ this.highlighter, diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 26f936c66..f9139220b 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -388,7 +388,7 @@ export class PDFViewer extends ViewBoxAnnotatableComponent v.forEach(a => a.remove())); this._savedAnnotations.clear(); -- cgit v1.2.3-70-g09d2