From 9cc9b2aca40e0a0c5e6027999e4d6316113ac6bf Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 18 Mar 2025 21:36:03 -0400 Subject: finally fixed selectionw with new version of PDFjs --- src/client/views/pdf/PDFViewer.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/client/views/pdf/PDFViewer.scss b/src/client/views/pdf/PDFViewer.scss index f4257a93c..1aab2b853 100644 --- a/src/client/views/pdf/PDFViewer.scss +++ b/src/client/views/pdf/PDFViewer.scss @@ -29,10 +29,11 @@ .textLayer { opacity: unset; mix-blend-mode: multiply; // bcz: makes text fuzzy! + // all these below fix issues with PDFjs transform: scale(var(--devicePixelRatio)); - .markedContent span { - --total-scale-factor: var(--scale-factor); - } + --total-scale-factor: var(--scale-factor); // these 3 are used by PDFjs but not defined. why??? + --scale-round-x: 1px; + --scale-round-y: 1px; } [data-main-rotation='90'] { transform: scale(var(--devicePixelRatio)) rotate(90deg) translateY(-100%); -- cgit v1.2.3-70-g09d2