Skip to content

Commit f84682f

Browse files
committed
fix text selection for PDFs with marked content
Update viewer.css to match recent changes in pdfjs
1 parent 3edf8b4 commit f84682f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pages/pdfViewer/viewer.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,19 @@
141141
contain: strict;
142142
}
143143

144-
.textLayer > span {
144+
.textLayer span {
145145
color: transparent;
146146
position: absolute;
147147
white-space: pre;
148148
cursor: text;
149149
transform-origin: top left;
150150
}
151151

152+
.textLayer span.markedContent {
153+
top: 0;
154+
height: 0;
155+
}
156+
152157
.annotationLayer img,
153158
.annotationLayer .popupAnnotation,
154159
.annotationLayer .popupWrapper {

0 commit comments

Comments
 (0)