aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-04-17 15:07:17 -0400
committerbobzel <zzzman@gmail.com>2023-04-17 15:07:17 -0400
commit62f80ef79e6e592602ad8e4d4cc81ce317f1260c (patch)
tree5c2b3f6125573276957375e2ce9054cbbe3f4e87 /src/client/views/pdf
parente45cf590cf20d3af2bc07e4af78d69470ebfe665 (diff)
parent8619a61dd33cdbfa1b8fe3e762306bbf52dbcbad (diff)
Merge branch 'master' into pres-trail-sophie
Diffstat (limited to 'src/client/views/pdf')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 9517a6cac..68241e61f 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -432,7 +432,7 @@ export class PDFViewer extends React.Component<IViewerProps> {
const clientRects = selRange.getClientRects();
for (let i = 0; i < clientRects.length; i++) {
const rect = clientRects.item(i);
- if (rect && rect.width !== this._mainCont.current.clientWidth && rect.width) {
+ if (rect?.width && rect.width < this._mainCont.current.clientWidth / this.props.ScreenToLocalTransform().Scale) {
const scaleX = this._mainCont.current.offsetWidth / boundingRect.width;
const pdfScale = NumCast(this.props.layoutDoc._viewScale, 1);
const annoBox = document.createElement('div');