Files
designcraft/crates/tools
seanthandClaude 128e042fee View follows the caret (#3405)
* View follows the caret (#3405)

When typing, the arrow keys, undo or a command such as Insert Footnote
takes the caret to where its line isn't in view, the view scrolls just
enough to show the whole line, keeping zoom, as in InDesign. Only a
caret that moved scrolls the view: scrolling away by hand, or showing
another document, doesn't pull it back.

* View follows the caret: only the caret's move, only in the pane with the keyboard (#3405)

Review on #3451: Select All with the caret at the end moved only the
anchor, but the whole selection changed, so the view jumped back to a
caret that had not moved. In a split, both panes see the same selection,
so typing in one pane scrolled the other.

The view now follows only where the caret is (story, cell, frame,
focus). Every pane records it, but only the pane with the keyboard
scrolls, so the other keeps its place and doesn't jump when it takes
the keyboard.

---------

Co-authored-by: Claude <[email protected]>
2026-12-01 18:28:57 -06:00
..
2026-12-01 18:28:57 -06:00
2026-10-01 09:36:32 -04:00