Skip to content

[BUG] Previous scroll position lost when switching documents #586

Open

Description

@everalert

Hello! Firstly, thank you to all who have worked on this editor. I would like to report a UX issue so it can be even better. I'm unsure if this is better considered a bug or feature request, so I apologize if the title is incorrect. However, from the user perspective this seems like a bug.

When switching between two open documents (e.g. when using Ctrl+P), the scroll position of the document you were just viewing transfers to the new document. This causes you to visually lose your place, particularly when jumping between documents in which you have (had) drastically different scroll positions. For example, if you are editing the bottom of one document, then switch to another document and edit at the top, when you return to the first document it will be scrolled to the top and you will need to manually move the scroll to see the bottom again. The same thing also happens with the horizontal scroll. Please see below for a demonstration.

In this situation, the only way to quickly regain your position seems to be to manipulate the cursor. However, this is still undesirable as it requires the cursor to be at the place you were scrolled to (likely, but not always the case), messes with your selection if you had one, and if you had the document scrolled a particular way (e.g. to have a particular set of lines in view) then this still cannot quickly be fixed.

Please see the following for a demonstration. Thanks.

msedit-scroll-bug.mp4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions