mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Remove scrollTo on unload
This commit is contained in:
parent
19bc96a617
commit
eda1fe74f4
1 changed files with 0 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue