1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

fix(iframe-view): can't turn pages after changing window size

This commit is contained in:
NoraH1to 2023-05-20 01:36:00 +08:00
parent f09089cf77
commit 0caaf5f3da
2 changed files with 23 additions and 6 deletions

View file

@ -77,9 +77,8 @@ class Views {
}
destroy(view) {
if(view.displayed){
view.destroy();
}
// Just destroy it.
view.destroy();
if(this.container){
this.container.removeChild(view.element);