Cursor Misalignment On Scroll

Steps to reproduce

  • Open Obsidian Help/How to/Format your notes
  • Place the cursor inside of a line that has a modified cursor height, such as a top-level heading or a code block.
  • Scroll down the page until the cursor is 1­–2 screens above
  • Scroll back up and observe the cursor

Expected result

The cursor should remain in its previous position and match the height of the line.

Actual result

The cursor is misaligned within the line of text and has the wrong line-height.


  • Operating system: Linux
  • Obsidian version: v0.6.4
  • Using custom CSS: no

Additional information

The cursor is visually misaligned, but insertions and deletions happen at the correct position, causing the cursor to reset.


Issue still present in v0.6.5

thanks for the report