mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +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);
|
sidebarScrollView.addEventListener('scroll', updateThumbViewArea, true);
|
||||||
}, 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
|
* Render the next not yet visible page already such that it is
|
||||||
* hopefully ready once the user scrolls to it.
|
* hopefully ready once the user scrolls to it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue