forked from akai/readest
ed7cfc31fc
The `pages` getter used Math.ceil(viewSize / containerSize) which inflates the count by 1 when floating-point drift makes the ratio slightly above an integer (e.g. 4.00000001 → 5). Use Math.round to absorb sub-pixel drift, matching the approach already used in #getPagesBeforeView. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>