From 1b3caadd2085facbb02dae4141544052eec7883d Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 16 May 2023 16:21:48 +0300 Subject: [PATCH] Allow window dragging from PDF reader toolbar Fixes #2713 --- chrome/content/zotero/xpcom/reader.js | 2 ++ pdf-reader | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/reader.js b/chrome/content/zotero/xpcom/reader.js index 9448a1c4cd..a19e030634 100644 --- a/chrome/content/zotero/xpcom/reader.js +++ b/chrome/content/zotero/xpcom/reader.js @@ -1303,6 +1303,7 @@ class ReaderTab extends ReaderInstance { this._iframe.setAttribute('type', 'content'); this._iframe.setAttribute('src', 'resource://zotero/pdf-reader/viewer.html'); this._tabContainer.appendChild(this._iframe); + this._iframe.docShell.windowDraggingAllowed = true; this._popupset = this._window.document.createElement('popupset'); this._tabContainer.appendChild(this._popupset); @@ -1401,6 +1402,7 @@ class ReaderWindow extends ReaderInstance { this._window.onGoMenuOpen = this._onGoMenuOpen.bind(this); this._window.onViewMenuOpen = this._onViewMenuOpen.bind(this); this._iframe = this._window.document.getElementById('reader'); + this._iframe.docShell.windowDraggingAllowed = true; } if (this._iframe.contentWindow && this._iframe.contentWindow.document === event.target) { diff --git a/pdf-reader b/pdf-reader index 590af78005..5c21f0a43b 160000 --- a/pdf-reader +++ b/pdf-reader @@ -1 +1 @@ -Subproject commit 590af780053f198838c0f3b4afa3f197ef45453e +Subproject commit 5c21f0a43b328bb53e290954e67fe59a54401bf1