This change updates fbpdf’s main loop to compute explicit vertical scroll limits and trigger page loads when the viewport reaches the top or bottom margin. Instead of clamping strictly within the current page, scrolling now attempts to move into the previous or next page using loadpage() and getcount(1), with sensible fallbacks when no adjacent page is available. The result is smoother navigation through PDFs, especially when reading continuously across page boundaries.

Define multi-page vertical scrolling in fbpdf so scrolling at page bounds can load adjacent pages seamlessly. - zhengqunkoo/fbpdf