From: Saebekassebil Date: Mon, 26 Dec 2011 15:07:56 +0000 (+0100) Subject: Set page number instead of window.scrollTo, and remove Cookie reference X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=83cb12be7fbadd222c0bd17fd5ac9d589b2eb94b;p=pdf.js.git Set page number instead of window.scrollTo, and remove Cookie reference --- diff --git a/web/viewer.js b/web/viewer.js index 36b1299..ebe93ea 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -27,7 +27,7 @@ var Cache = function cacheCache(size) { // Settings Manager - This is a utility for saving settings // First we see if localStorage is available, FF bug #495747 -// If not, we use FUEL in FF and fallback to Cookies for other browsers. +// If not, we use FUEL in FF var Settings = (function SettingsClosure() { var isLocalStorageEnabled = (function localStorageEnabledTest() { try { @@ -390,7 +390,7 @@ var PDFView = { else if (storedHash) { this.setHash(storedHash); } else - window.scrollTo(0, 0); // Scroll to top is default. + this.page = 1; }, setHash: function pdfViewSetHash(hash) {