Skip to content

Avoid jumps when showing/hiding PR comments #2329

@dorian-marchal

Description

@dorian-marchal

On a pull request, when comments are toggled with i, Github scrolls back to the top of the page, making it difficult to keep on reviewing.

You can try it in this pull request: https://github.com/sindresorhus/refined-github/pull/2087/files

  • Scroll to a comment
  • Press i

Currently, I click and hold the scroll bar to avoid the jump but as the page height changes, this is not always ideal.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions