mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +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.clearMouseScrollState();
|
||||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue