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; }