mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Merge pull request #3774 from Snuffleupagus/contextMenu-PresentationMode
Enabling clicking to close the context menu in Presentation Mode, without going to the next page
This commit is contained in:
commit
64757dd481
2 changed files with 46 additions and 13 deletions
|
@ -153,7 +153,12 @@ var PDFView = {
|
|||
});
|
||||
|
||||
PresentationMode.initialize({
|
||||
container: container
|
||||
container: container,
|
||||
secondaryToolbar: SecondaryToolbar,
|
||||
firstPage: document.getElementById('contextFirstPage'),
|
||||
lastPage: document.getElementById('contextLastPage'),
|
||||
pageRotateCw: document.getElementById('contextPageRotateCw'),
|
||||
pageRotateCcw: document.getElementById('contextPageRotateCcw')
|
||||
});
|
||||
|
||||
this.initialized = true;
|
||||
|
@ -1655,18 +1660,6 @@ document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
|
|||
document.getElementById('download').addEventListener('click',
|
||||
SecondaryToolbar.downloadClick.bind(SecondaryToolbar));
|
||||
|
||||
document.getElementById('contextFirstPage').addEventListener('click',
|
||||
SecondaryToolbar.firstPageClick.bind(SecondaryToolbar));
|
||||
|
||||
document.getElementById('contextLastPage').addEventListener('click',
|
||||
SecondaryToolbar.lastPageClick.bind(SecondaryToolbar));
|
||||
|
||||
document.getElementById('contextPageRotateCw').addEventListener('click',
|
||||
SecondaryToolbar.pageRotateCwClick.bind(SecondaryToolbar));
|
||||
|
||||
document.getElementById('contextPageRotateCcw').addEventListener('click',
|
||||
SecondaryToolbar.pageRotateCcwClick.bind(SecondaryToolbar));
|
||||
|
||||
//#if (FIREFOX || MOZCENTRAL)
|
||||
//PDFView.setTitleUsingUrl(file);
|
||||
//PDFView.initPassiveLoading();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue