@syncfusion/ej2-pdfviewer 17.3.50-4568 → 17.3.52-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.
@@ -20400,7 +20400,7 @@ class PdfViewerBase {
20400
20400
  if (this.isDeviceiOS) {
20401
20401
  const obj = findActiveElement(event, this, this.pdfViewer);
20402
20402
  // eslint-disable-next-line
20403
- let isRemoveFocus = !this.pdfViewer.annotation.freeTextAnnotationModule.isNewFreeTextAnnot && (obj && this.pdfViewer.selectedItems.annotations[0] ? obj.id !== this.pdfViewer.selectedItems.annotations[0].id : true) && document.activeElement.classList.contains('free-text-input') && this.isFreeTextAnnotation(this.pdfViewer.selectedItems.annotations);
20403
+ let isRemoveFocus = (!isNullOrUndefined(this.pdfViewer.annotation) && !isNullOrUndefined(this.pdfViewer.annotation.freeTextAnnotationModule) && !this.pdfViewer.annotation.freeTextAnnotationModule.isNewFreeTextAnnot) && (obj && this.pdfViewer.selectedItems.annotations[0] ? obj.id !== this.pdfViewer.selectedItems.annotations[0].id : true) && document.activeElement.classList.contains('free-text-input') && this.isFreeTextAnnotation(this.pdfViewer.selectedItems.annotations);
20404
20404
  if (!this.singleTapTimer) {
20405
20405
  this.singleTapTimer = setTimeout(() => {
20406
20406
  if (isRemoveFocus) {
@@ -20415,6 +20415,9 @@ class PdfViewerBase {
20415
20415
  else {
20416
20416
  if (this.pdfViewer.enablePinchZoom) {
20417
20417
  this.tapCount++;
20418
+ if (this.tapCount > 2) {
20419
+ this.tapCount = 2;
20420
+ }
20418
20421
  clearTimeout(this.singleTapTimer);
20419
20422
  this.singleTapTimer = null;
20420
20423
  this.onDoubleTap(touchPoints);
@@ -20432,6 +20435,9 @@ class PdfViewerBase {
20432
20435
  else {
20433
20436
  if (this.pdfViewer.enablePinchZoom) {
20434
20437
  this.tapCount++;
20438
+ if (this.tapCount > 2) {
20439
+ this.tapCount = 2;
20440
+ }
20435
20441
  clearTimeout(this.singleTapTimer);
20436
20442
  this.singleTapTimer = null;
20437
20443
  this.onDoubleTap(touchPoints);