Skip to content

Split scroll sync repositions panes on every cursor move while typing #303

Description

@PathGao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions