@syncfusion/ej2-pdfviewer 17.3.55-4568 → 17.3.57-4568

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22579,8 +22579,12 @@ class PdfViewerBase {
22579
22579
  let offsetY;
22580
22580
  if (e.type.indexOf('touch') !== -1) {
22581
22581
  touchArg = e;
22582
- if (this.pdfViewer.annotation) {
22583
- let pageDiv = this.getElement('_pageDiv_' + this.pdfViewer.annotation.getEventPageNumber(e));
22582
+ if (this.pdfViewer.annotation || this.isDeviceiOS) {
22583
+ let pageNumber = this.currentPageNumber - 1;
22584
+ if (this.pdfViewer.annotation && !isNaN(this.pdfViewer.annotation.getEventPageNumber(e))) {
22585
+ pageNumber = this.pdfViewer.annotation.getEventPageNumber(e);
22586
+ }
22587
+ const pageDiv = this.getElement('_pageDiv_' + pageNumber);
22584
22588
  if (pageDiv) {
22585
22589
  let pageCurrentRect = pageDiv.getBoundingClientRect();
22586
22590
  offsetX = touchArg.changedTouches[0].clientX - pageCurrentRect.left;
@@ -23110,7 +23114,7 @@ class PdfViewerBase {
23110
23114
  }
23111
23115
  let target = evt.target;
23112
23116
  // tslint:disable-next-line:max-line-length
23113
- if (!touches && evt.cancelable && this.skipPreventDefault(target)) {
23117
+ if (!touches && (evt.cancelable && !(this.isDeviceiOS && !this.pdfViewer.annotationModule)) && this.skipPreventDefault(target)) {
23114
23118
  evt.preventDefault();
23115
23119
  }
23116
23120
  this.eventArgs = {};
@@ -26689,7 +26693,7 @@ class Magnification {
26689
26693
  this.pdfViewerBase.renderedPagesList = [];
26690
26694
  this.pdfViewerBase.pinchZoomStorage = [];
26691
26695
  this.isMagnified = false;
26692
- this.pdfViewerBase.pageViewScrollChanged(this.reRenderPageNumber);
26696
+ this.pdfViewerBase.pageViewScrollChanged(this.pdfViewerBase.currentPageNumber);
26693
26697
  // tslint:disable-next-line
26694
26698
  let proxy = this;
26695
26699
  this.rerenderInterval = setInterval(() => { this.initiateRerender(proxy); }, 1);