fix(paginator): bump foliate-js submodule for scrollBounds guard (#4526)
Pulls in the foliate-js fix that guards Paginator#scrollBy and Paginator#snap against an uninitialized #scrollBounds. Without the guard, a swipe that lands before the first #scrollToPage seeds the bounds (e.g. a fast swipe right after the reader mounts, or while a section is still loading) crashes with TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) at Paginator.snap The submodule fix bails out of both entry points when the bounds aren't ready yet, so the swipe is dropped rather than fatal; subsequent settled scrolls reseed the bounds and swipe handling resumes.
This commit is contained in:
+1
-1
Submodule packages/foliate-js updated: 91191cafc4...dbe70677c6
Reference in New Issue
Block a user