Allow window dragging from PDF reader toolbar

Fixes #2713
This commit is contained in:
Abe Jellinek 2023-05-16 16:21:48 +03:00
parent c9381f307c
commit 1b3caadd20
2 changed files with 3 additions and 1 deletions

View file

@ -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) {

@ -1 +1 @@
Subproject commit 590af780053f198838c0f3b4afa3f197ef45453e
Subproject commit 5c21f0a43b328bb53e290954e67fe59a54401bf1