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 18, 2023
1 parent 592e207 commit faab25b
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 faab25b

Please sign in to comment.