1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Scroll the Thumbnail of the current page into view when exiting fullscreen mode

This commit is contained in:
Jonas 2013-03-10 13:56:24 +01:00
parent 0ebe91c50b
commit 82b588389f

View file

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