Use BaseViewer.previousPage more in the default viewer (PR 12870 follow-up)

I missed this one spot in PR 12870, when converting the other cases in the "keydown" event handler. However, given that it only matters in PresentationMode and/or when "page-fit" zooming is enabled, this oversight shouldn't have had any user-observable impact (but we should fix it nonetheless).
This commit is contained in:
Jonas Jenwald 2021-11-02 11:48:18 +01:00
parent 6a15973a1b
commit d6e8b8fbc1

View File

@ -3057,9 +3057,8 @@ function webViewerKeyDown(evt) {
) {
break;
}
if (PDFViewerApplication.page > 1) {
PDFViewerApplication.page--;
}
pdfViewer.previousPage();
handled = true;
break;