aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-11-05 09:53:38 -0500
committerbobzel <zzzman@gmail.com>2020-11-05 09:53:38 -0500
commit38912acdfe5d52ab068bb11d05e1767ecc5d56ac (patch)
treeb869aaa381ad95858221c6d4983ef28086f60707 /src
parent4becefec2200632b482b7660bd3bb0792a4ba1d8 (diff)
fixed layer ordering of annotaitons and overlays on PDFs so that overlays are always on top. made textLayer on PDFs display:none when not-selected to try to improve rendering.
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/PDFBox.scss2
-rw-r--r--src/client/views/pdf/PDFViewer.tsx2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/PDFBox.scss b/src/client/views/nodes/PDFBox.scss
index e2bdd98cc..16cc9d27e 100644
--- a/src/client/views/nodes/PDFBox.scss
+++ b/src/client/views/nodes/PDFBox.scss
@@ -208,6 +208,7 @@
pointer-events: none;
.pdfViewerDash-text {
.textLayer {
+ display: none;
span {
user-select: none;
}
@@ -228,6 +229,7 @@
z-index: -1;
.pdfViewerDash-text {
.textLayer {
+ display: contents;
span {
user-select: text;
}
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 76b218972..48c7b1762 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -792,8 +792,8 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu
transform: `scale(${this.props.ContentScaling()})`
}} >
{this.pdfViewerDiv}
- {this.overlayLayer}
{this.annotationLayer}
+ {this.overlayLayer}
{this.overlayInfo}
{this.standinViews}
<PdfViewerMarquee isMarqueeing={this.marqueeing} width={this.marqueeWidth} height={this.marqueeHeight} x={this.marqueeX} y={this.marqueeY} />