@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.
@@ -22791,8 +22791,12 @@ var PdfViewerBase = /** @class */ (function () {
22791
22791
  var offsetY;
22792
22792
  if (e.type.indexOf('touch') !== -1) {
22793
22793
  touchArg = e;
22794
- if (this.pdfViewer.annotation) {
22795
- var pageDiv = this.getElement('_pageDiv_' + this.pdfViewer.annotation.getEventPageNumber(e));
22794
+ if (this.pdfViewer.annotation || this.isDeviceiOS) {
22795
+ var pageNumber = this.currentPageNumber - 1;
22796
+ if (this.pdfViewer.annotation && !isNaN(this.pdfViewer.annotation.getEventPageNumber(e))) {
22797
+ pageNumber = this.pdfViewer.annotation.getEventPageNumber(e);
22798
+ }
22799
+ var pageDiv = this.getElement('_pageDiv_' + pageNumber);
22796
22800
  if (pageDiv) {
22797
22801
  var pageCurrentRect = pageDiv.getBoundingClientRect();
22798
22802
  offsetX = touchArg.changedTouches[0].clientX - pageCurrentRect.left;
@@ -23322,7 +23326,7 @@ var PdfViewerBase = /** @class */ (function () {
23322
23326
  }
23323
23327
  var target = evt.target;
23324
23328
  // tslint:disable-next-line:max-line-length
23325
- if (!touches && evt.cancelable && this.skipPreventDefault(target)) {
23329
+ if (!touches && (evt.cancelable && !(this.isDeviceiOS && !this.pdfViewer.annotationModule)) && this.skipPreventDefault(target)) {
23326
23330
  evt.preventDefault();
23327
23331
  }
23328
23332
  this.eventArgs = {};
@@ -26914,7 +26918,7 @@ var Magnification = /** @class */ (function () {
26914
26918
  this.pdfViewerBase.renderedPagesList = [];
26915
26919
  this.pdfViewerBase.pinchZoomStorage = [];
26916
26920
  this.isMagnified = false;
26917
- this.pdfViewerBase.pageViewScrollChanged(this.reRenderPageNumber);
26921
+ this.pdfViewerBase.pageViewScrollChanged(this.pdfViewerBase.currentPageNumber);
26918
26922
  // tslint:disable-next-line
26919
26923
  var proxy = this;
26920
26924
  this.rerenderInterval = setInterval(function () { _this.initiateRerender(proxy); }, 1);