Incorrect backlink jump to page with many transclusions

Steps to reproduce

  • Open attached vault.
  • Go to note part15 and enter the preview mode.
  • Click the backlink leading to note scrolling bug.

Expected result

  • Page scrolling bug is opened.
  • Page is scrolled to the location of part15 transclusion.

Actual result

  • Page scrolling bug is opened.
  • Page is scrolled to the location of part15 transclusion.
  • In a fraction of a second, the page moves and the location is no longer correct.

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.12.15

Additional information

No plugins or CSS snippets active.

Reproduction video and vault attached.

repro_video.zip (921.4 KB)
scrolling_bug.zip (51.6 KB)

1 Like

Does this happen because Obsidian hadn’t loaded the transclusions yet? Or do you also get a page jump when the note is already rendered?

It reminds me of the ‘page jump’ behaviour I reported earlier here (when opening a note) and here (when navigating back/forward).

I get this every time I try this, even if I try this many times in the same program instance.

Although yes, I am pretty sure that the root cause is a race condition between the scrolling command and the transclusions above the viewport being rendered.