forked from akai/readest
49b171f5e5
* fix(reader): restore right-column clicks and selection in dual-page mode Bumps foliate-js to readest/foliate-js@1ea2996, which stops marking visible non-primary views as `inert` / `aria-hidden`. Adds a regression test for the underlying visibility helper. When a dual-page spread crosses a section boundary, the right column lives in a non-primary view. The previous a11y sync set both `inert` and `aria-hidden` on that view — `inert` blocked link clicks and text selection in the visible column, and `aria-hidden` hid it from assistive tech while sighted users could still read it. The fix drops `inert` entirely (screen-reader swipe-next is already handled by `aria-hidden`) and applies `aria-hidden` only to views whose bounding rect lies outside the visible container. Fixes #4243 (right-column links unclickable in dual-page mode). Fixes #4259 (text selection fails when an image section is on the left). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * test(reader): update paginator-multiview a11y assertions for new visibility-based aria-hidden Browser tests previously assumed every non-primary view carried both `inert` and `aria-hidden`. The fix in the preceding commit drops `inert` entirely and only `aria-hidden`s views that are off-screen. Update the two assertions to: - check that no wrapper ever has `inert`; - require `aria-hidden="true"` only when the wrapper's bounding rect is fully outside the visible container, and require its absence when the wrapper overlaps the viewport (the regression case from #4243 / #4259). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>