You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Livereload-friendly position preservation. When a PDF is regenerated
and re-opened with a cache-busted query (paper.pdf?t=..., common for
LaTeX watchers / live-preview servers), VimDF now treats it as the same
document. The page-state storage key strips well-known cache-bust params
(t, _, v, cb, ts, r) and the URL fragment, and the persisted
state now includes within-page scrollTop in addition to page number —
so a recompile no longer jumps the view back to page 1 / top. Saves are
trailing-debounced (150 ms) on both pagechanging and the container's scroll event so continuous scrolling doesn't hammer chrome.storage
Fixed
Embedded PDFs needed a click before keys worked. A PDF loaded in an <iframe> (the case 0.4.1 started intercepting) kept keyboard focus on
the host page, so j / k scrolled the host until the user clicked the
PDF. Cross-origin iframes can't grab focus on themselves; a tiny content
script on the host page now listens for a postMessage from the viewer
and calls iframe.focus() on the originating iframe. No new permission
required — matches: ["<all_urls>"] is covered by the existing <all_urls> host permission, so existing users aren't auto-disabled