diff options
author | bobzel <zzzman@gmail.com> | 2020-09-03 14:02:51 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-03 14:02:51 -0400 |
commit | 937198ef91a364779bf7fd7d52b20c941a1ebc95 (patch) | |
tree | 543b748055961b47eeddc7d3d6a6a0bfea02b6f8 | |
parent | db006cac0f002a27c60df4f002b1b95ab4fd336e (diff) |
fixed pdf link following not to require two clicks.
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 78576657c..6342e7839 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -435,7 +435,7 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu // if alt+left click, drag and annotate this._downX = e.clientX; this._downY = e.clientY; - addStyleSheetRule(PDFViewer._annotationStyle, "pdfAnnotation", { "pointer-events": "none" }); + (e.target as any).tagName === "SPAN" && addStyleSheetRule(PDFViewer._annotationStyle, "pdfAnnotation", { "pointer-events": "none" }); if ((this.Document._viewScale || 1) !== 1) return; if ((e.button !== 0 || e.altKey) && this.active(true)) { this._setPreviewCursor?.(e.clientX, e.clientY, true); |