PDF scrolls to beginning when pane is moved

Steps to reproduce

  1. Open a PDF
  2. Go to some page well into the document
  3. Drag the pane to another location in the workspace

Expected result

PDF should remain at the same page, or within a page or two difference

Actual result

PDF viewer reloads and goes back to the start of the document, losing your place.


  • Operating system: Windows
  • Obsidian version: 0.10.9

Additional information

The same thing happens when going back or forward in the history, which implies the viewer’s state isn’t being saved to history or restored from it, either.

This is unfortunately not something we can fix because <iframes> are reloaded (mandatory by spec) when they are moved in the DOM.