| Index: chrome/browser/resources/pdf/pdf.js
|
| diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
|
| index 3046b5bca30fa93b03edcdcd1283485d93e6c474..23d9bbed4d1c6e2d674267d5e3abfdd3fb74adc9 100644
|
| --- a/chrome/browser/resources/pdf/pdf.js
|
| +++ b/chrome/browser/resources/pdf/pdf.js
|
| @@ -262,7 +262,7 @@ PDFViewer.prototype = {
|
| case 37: // Left arrow key.
|
| if (!(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) {
|
| // Go to the previous page if there are no horizontal scrollbars.
|
| - if (!this.viewport_.documentHasScrollbars().x) {
|
| + if (!this.viewport_.documentHasScrollbars().horizontal) {
|
| this.viewport_.goToPage(this.viewport_.getMostVisiblePage() - 1);
|
| // Since we do the movement of the page.
|
| e.preventDefault();
|
| @@ -281,7 +281,7 @@ PDFViewer.prototype = {
|
| case 39: // Right arrow key.
|
| if (!(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) {
|
| // Go to the next page if there are no horizontal scrollbars.
|
| - if (!this.viewport_.documentHasScrollbars().x) {
|
| + if (!this.viewport_.documentHasScrollbars().horizontal) {
|
| this.viewport_.goToPage(this.viewport_.getMostVisiblePage() + 1);
|
| // Since we do the movement of the page.
|
| e.preventDefault();
|
|
|