Skip to content

[Bug]: Scrolling #46

Description

@AFwcxx

Description

When viewing one file and then opening another file, MarkView does not reset the scroll position for the newly opened file.

Instead, the new file appears to inherit the scroll position from the previously viewed file.

There also seems to be a related layout issue: if the previous file is very long, the next file shows a large amount of empty space at the bottom, as if the scroll height/page height is still based on the previous file rather than the newly opened file.

Steps to Reproduce

  1. Open a long file in MarkView.
  2. Scroll down somewhere in the file, for example near the middle or bottom.
  3. Open a different file, especially a shorter file.
  4. Observe the scroll position and the bottom area of the new file.

MarkView Version

2.8.2

Browser

Chrome

Operating System

Linux

Screenshots

No response

Additional Context

No response

Before submitting

  • I have searched existing issues to avoid duplicates
  • I have removed any sensitive information from screenshots/logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageNeeds initial review

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions