Tables: Undo (CTRL+Z) scrolls the viewport to the wrong location

Steps to reproduce

  1. Create New Document
  2. Insert a table with large amount of rows (so the doc becomes scrollable)
  3. Insert text in any random cells (preferrably at the top and the bottom of the table)
  4. Start Undo several times (Ctrl+Z)
  5. Observe

Did you follow the troubleshooting guide? [Y/N]

Yes. The issue is reproducible in the sandbox vault. Additionaly, it’s reproduced on Windows machine as well.

Expected result

When undo’d content is within the screen, document should not scroll.

Actual result

Document scrolls unpredictably with each undo. Sometimes document scrolls to the close place where undo happened, but the cell that’ve changed still out of the screen. It’s become unintuitive and difficult to grasp what just have been deleted.

The easiest example is that undoing content in the bottom last cell scrolls document up to the top.

Environment

SYSTEM INFO:
Obsidian version: v1.8.10
Installer version: v1.8.10
Operating system: #1 SMP PREEMPT_DYNAMIC Tue, 29 Apr 2025 09:23:13 +0000 6.14.4-arch1-2
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Repro Video: https://www.youtube.com/watch?v=JQPrMnfuDFw

I can reproduce. Code/text used:

| top                          |     |
| ---------------------------- | --- |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
|                              |     |
| 🙋‍♀️ remove me and press ⌘Z |     |

I also confirm and can reproduce

@WhiteNoise Can the team reproduce this annoying bug or is it just us three?

Please, don’t ping me or anybody else.

renamed for clarity.

1 Like