Skip to content

Scrolling the previewer by a single line can cause the previewer to scrol to the next or previous section heading #876

Closed
@davbeek

Description

@davbeek

Expected behavior

Scrolling the previewer by a few lines causes the editor to scroll a similar amount of lines.

Actual behavior

Scolling the previewer by a few lines may cause the editor to jump to the next or previous section heading. E.g. when I start the previewer at the heading Inclusions and exclusions and scroll a single line up, the editor jumps to the next section Analysis options. This big jump causes such a big difference in what I see in the previewer vs what I see in the editor that there is no longer any overlap on my 16 inch MacBook screen.

In general, the editor takes much bigger jumps than the previewer, I have noticed that it may also jump to notes or warnings or starts of figures. I am not sure if this is a bug or the intended behavior due to implementation difficulties of smooth scrolling.

Esbonio 0.95.1
Sphinx 7.3.7
Python 3.12.4
macOS Sonoma 14.6.1
VSCode 1.92.2

Log output

No response

(Optional) Settings from conf.py

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingide:vscodeIssues that relate to the Esbonio vscode extensionlspIssues that relate to the language server

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions