Skip to content

B1: Scroll restoration race on async Mermaid render #7

Description

@jverhoeks

Source: codebase-review.md — Bug B1

File: tabs.ts:265–286

repaint fires async renderers (Mermaid) without await, so scrollTop is restored before async DOM mutations complete, causing a visual jump when viewing documents with diagrams.

Fix: await all async renderers before restoring scroll position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: highHigh priorityseverity: highHigh severity — major broken feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions