From 31176e5d47f644d1d392ec315bbe0f34ed142f1b Mon Sep 17 00:00:00 2001 From: loveheaven Date: Thu, 11 Jun 2026 01:23:07 +0800 Subject: [PATCH] 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. --- packages/foliate-js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/foliate-js b/packages/foliate-js index 91191caf..dbe70677 160000 --- a/packages/foliate-js +++ b/packages/foliate-js @@ -1 +1 @@ -Subproject commit 91191cafc413e53998772ef67fe00436333c17cb +Subproject commit dbe70677c6e1925950dfaf526c307d8e5057ee35