From f638d1a41da5fd76a956748c82ee5c723793e191 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 3 Sep 2020 14:17:08 -0400 Subject: from last --- src/client/views/pdf/PDFViewer.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 6342e7839..2129eb145 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -98,6 +98,7 @@ export class PDFViewer extends ViewBoxAnnotatableComponent void); private _annotationLayer: React.RefObject = React.createRef(); @@ -435,11 +436,10 @@ export class PDFViewer extends ViewBoxAnnotatableComponent { + clearStyleSheetRules(PDFViewer._annotationStyle); + document.removeEventListener("pointerup", this.removeStyle); + } @action onSelectMove = (e: PointerEvent): void => { -- cgit v1.2.3-70-g09d2