From: notmasteryet Date: Tue, 27 Mar 2012 16:48:47 +0000 (-0500) Subject: Remove scrollTo on unload X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=eda1fe74f4cd8979226444f0e99cc120f563cc2a;p=pdf.js.git Remove scrollTo on unload --- diff --git a/web/viewer.js b/web/viewer.js index 67ef67e..0e6fdb7 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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.