mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #2920 from Snuffleupagus/thumbnail-on-fullscreen-close
Scroll the Thumbnail of the current page into view when exiting fullscreen mode
This commit is contained in:
commit
605da8bf67
1 changed files with 4 additions and 0 deletions
|
@ -1730,6 +1730,10 @@ var PDFView = {
|
||||||
this.page = this.page;
|
this.page = this.page;
|
||||||
this.clearMouseScrollState();
|
this.clearMouseScrollState();
|
||||||
this.hidePresentationControls();
|
this.hidePresentationControls();
|
||||||
|
|
||||||
|
// Ensure that the thumbnail of the current page is visible
|
||||||
|
// when exiting fullscreen mode.
|
||||||
|
scrollIntoView(document.getElementById('thumbnailContainer' + this.page));
|
||||||
},
|
},
|
||||||
|
|
||||||
showPresentationControls: function pdfViewShowPresentationControls() {
|
showPresentationControls: function pdfViewShowPresentationControls() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue