From faab25b30e75a5718e2c33b84eb6333327098a1c Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Tue, 12 Dec 2023 17:40:47 +0100 Subject: [PATCH] Fix unable to annotate PDFs in a browser on iOS --- src/pdf/pdf-view.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pdf/pdf-view.js b/src/pdf/pdf-view.js index d7eed01a..c4189795 100644 --- a/src/pdf/pdf-view.js +++ b/src/pdf/pdf-view.js @@ -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; }