mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
The recorded scroll position is window.scrollY, an absolute pixel offset baked into the rendered page. Rotating reflows the article at a new width, so that offset points somewhere else. The web view also scrolls on its own during the transition, overwriting the stored position before anything can restore it. Record the element at the top of the viewport along with its offset, stop recording while the view changes size, and scroll back to that element once the transition ends. Verified on an iPhone Duo. The same loss happens on iPad, which is where I first noticed it. Written with help from Claude Code.