Content overflows/shifts right after navigating back, in both paginated and continuous scroll mode
Environment
- Foliate version: 3.3.0
- Installation: Flatpak (Flathub)
- OS: Linux Mint 22.3 Cinnamon (Ubuntu 24.04 base)
- GPU: Intel Iris Xe (integrated)
Steps to reproduce
- Open an EPUB file.
- Navigate forward a few pages.
- Navigate back using the mouse back button (or any "back" navigation in the reading history).
- Navigate forward again to return to the previous position.
Result Text on the right side of the page is cut off / shifted, requiring horizontal scrolling to read it and to turn the page. This happens in both paginated mode and continuous scroll mode.
Temporary workaround Touching the margin settings, or slightly resizing the window, forces a layout recalculation that temporarily fixes the display.
What I've already ruled out
Tested both WEBKIT_DISABLE_DMABUF_RENDERER=1 and WEBKIT_DISABLE_COMPOSITING_MODE=1 as environment variables — neither fixed the issue, suggesting this isn't purely a GPU compositing problem.
Possibly related
- #840 (same symptom reported on the older Epub.js-based engine)
- #1665 (similar layout recalculation bug, but limited to PDF column mode)
This may be a broader case than #1665, since it also affects continuous scroll mode, not just paginated/column layouts.
Source: johnfactotum/foliate