]> git.parisson.com Git - pdf.js.git/commitdiff
Remove scrollTo on unload
authornotmasteryet <async.processingjs@yahoo.com>
Tue, 27 Mar 2012 16:48:47 +0000 (11:48 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Tue, 27 Mar 2012 16:48:47 +0000 (11:48 -0500)
web/viewer.js

index 67ef67e97ef9cf99c14033df8699f071cf72e126..0e6fdb7fe0a3387d6d5b7f45da3b0ea1e41155e1 100644 (file)
@@ -1195,10 +1195,6 @@ window.addEventListener('load', function webViewerLoad(evt) {
   sidebarScrollView.addEventListener('scroll', updateThumbViewArea, true);
 }, true);
 
-window.addEventListener('unload', function webViewerUnload(evt) {
-  window.scrollTo(0, 0);
-}, true);
-
 /**
  * Render the next not yet visible page already such that it is
  * hopefully ready once the user scrolls to it.