1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Reset window scroll position after viewport change

This commit is contained in:
Fred Chasen 2017-06-16 15:15:17 -04:00
parent 8c7f7ac868
commit ed3250e95b

View file

@ -253,6 +253,8 @@ class Contents {
}
$viewport.setAttribute("content", newContent.join(", "));
this.window.scrollTo(0, 0);
}