diff --git a/web/viewer.js b/web/viewer.js index d3826d77d..6ee4d78ba 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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() {