From 2d028e64c50fccad4247f0c6baeb3f480628d198 Mon Sep 17 00:00:00 2001 From: Snuffleupagus Date: Wed, 16 Jan 2013 15:06:10 +0100 Subject: [PATCH] Change page with up/down arrow keys when zoom is set to 'page-fit' --- web/viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/viewer.js b/web/viewer.js index d2e622761..fa10d11ab 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -3205,7 +3205,7 @@ window.addEventListener('keydown', function keydown(evt) { case 38: // up arrow case 33: // pg up case 8: // backspace - if (!PDFView.isFullscreen) { + if (!PDFView.isFullscreen && PDFView.currentScaleValue !== 'page-fit') { break; } // in fullscreen mode falls throw here @@ -3222,7 +3222,7 @@ window.addEventListener('keydown', function keydown(evt) { case 40: // down arrow case 34: // pg down case 32: // spacebar - if (!PDFView.isFullscreen) { + if (!PDFView.isFullscreen && PDFView.currentScaleValue !== 'page-fit') { break; } // in fullscreen mode falls throw here