mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Reset window scroll position after viewport change
This commit is contained in:
parent
8c7f7ac868
commit
ed3250e95b
1 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,8 @@ class Contents {
|
|||
}
|
||||
|
||||
$viewport.setAttribute("content", newContent.join(", "));
|
||||
|
||||
this.window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue