Skip to content

Scrolling with the mouse wheel doesn't show past the first 'page'  #2309

@simon-abbott

Description

@simon-abbott

Describe the bug
When I try to scroll through a diff using the scroll wheel of my mouse (actually using 2-finger scroll on my trackpad, but same difference) it just moves around the first page of the diff but doesn't load any further lines.

To Reproduce
Steps to reproduce the behavior:

  1. Edit a file with a diff that is longer than the number of lines displayed in lazygit's diff view
  2. Scroll diff view with the mouse

Expected behavior
It should scroll through the entire diff.

Screenshots
I don't have any screenshots on hand, unfortunately (proprietary source code and all that), but if I manage to get some I'll put them here.

Version info:
commit=, build date=, build source=homebrew, version=0.36.0, os=darwin, arch=amd64, git version=2.37.0 (Apple Git-136)
`git version 2.37.0 (Apple Git-136)

Additional context
This started happening when I updated to v0.36.0. My guess as to what's happening is that there was some change to the diff loading that made it only load in the minimal amount it needs to display the shown portion of the diff, and the scroll wheel isn't causing that buffer to update. This guess is based on the fact that when you scroll using the keyboard (select a diff, press enter, then use arrow keys) the size of the scroll bar shrinks as it loads more of the diff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions