mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-23 22:59:51 -04:00
fix(paginator): tolerate not-yet-loaded section documents in early resize renders
The ResizeObserver can fire while the iframe document is still unset: setImageSize dereferenced doc.body unconditionally and setStylesImportant destructure-crashed on null, killing the render loop — the view then never snapped or relocated again (observed in an embedded Android WebView where the first observation lands pre-load). Guard both paths.
This commit is contained in:
1 parent
8e1d5fc8d6
commit
50f56ee67f
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "foliate-js",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"description": "Render e-books in the browser",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in new issue
Block a user