Skip to content

Commit

Permalink
Fix unable to annotate PDFs in a browser on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tnajdek committed Dec 12, 2023
1 parent 62999fe commit f133ca9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pdf/pdf-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,8 @@ class PDFView {
else {
this._iframeWindow.PDFViewerApplication.pdfCursorTools.switchTool(0);
}

this._iframeWindow.document.getElementById('viewerContainer').style.touchAction = tool.type !== 'pointer' ? 'none' : 'auto';
this._tool = tool;
}

Expand Down

0 comments on commit f133ca9

Please sign in to comment.