telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.9k forks source link

PDFViewer breaks the annotations in zoom-in/zoom-out #6586

Open antonmironovv opened 3 years ago

antonmironovv commented 3 years ago

Bug report

When zoom-in and zoom-out a couple of times, the data annotations in the PDFViewer are displaying mirrored and with the wrong size. Ticket #1537601.

Reproduction of the problem

  1. Open the PDFViewer demo
  2. Upload the file attached. Document2.pdf
  3. Zoom-in and zoom-out a couple of times.

Current behavior

The annotations in the file are displayed mirrored and with the wrong size. The following gif is representing the problem: Link

Expected/desired behavior

The annotations should be displayed correctly.

Environment

eyupyusein commented 2 years ago

I confirm that it happens on Edge and Chrome. Removed the MVC Wrappers as it happens with Kendo UI, too: https://demos.telerik.com/kendo-ui/pdfviewer/index

FireFox is working nicely. After all, the Mozilla Team is behind the development of PDF.js which is used in the PdfViewer component. Thus, this issue is probably tied to the capabilities of pdf.js within Chromium based browsers. It won't be surprising if this turns out to be a limitation.

Something similar is being discussed here, but it could be something different: https://github.com/mozilla/pdf.js/issues/6463