Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Split scroll sync repositions panes on every cursor move while typing

Open PathGao opened this issue 4 months ago • 0 comments

Problem

When split scroll sync is enabled, the editor registers onDidChangeCursorPosition as a scroll-sync source. Typing moves the cursor on every character, so each edit emits a new scroll position. If preview layout changes while rendering, the reciprocal positioning makes both panes visibly jump.

This is the remaining typing-jitter symptom reported in #205; it is distinct from normal scroll synchronization.

Expected behavior

Only actual editor scroll changes should initiate editor-to-preview synchronization. Cursor movement and text insertion without scrolling must not reposition either pane.

PathGao avatar Jul 31 '26 06:07 PathGao