Ver código fonte

fix: 修复文档引用高亮区域不对的问题

zhupei 1 ano atrás
pai
commit
d7c2b23d8d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/components/pdf-viewer/PDFViewer.vue

+ 1 - 1
src/components/pdf-viewer/PDFViewer.vue

@@ -165,7 +165,7 @@ onMounted(() => {
                 }
 
                 pos_info.forEach((psinfo) => {
-                    drawHighLight(pdfCtx, psinfo.x1, psinfo.x2, psinfo.y1, psinfo.y2);
+                    drawHighLight(pdfCtx, psinfo.x1 * scale_value, psinfo.x2 * scale_value, psinfo.y1 * scale_value, psinfo.y2 * scale_value);
                 });
             }