-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll on Commit Diff keeps jumping around #17776
Comments
Hey @madhaven, thanks for reaching out. Does this only happen when you expand hidden lines in a diff? Do you think you could capture a video of the behavior? We have recently made changes to the rendering of unified diffs that I'm certain is responsible for this behavior |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I was able to reproduce this: I found a particularly long file so that the expand hunk down button will work multiple times. I expand down once and scroll to see expander again, then, hit expand down again, now, the top of the diff will be at line x, if I try to scroll down quickly to see the expander again, it will scroll for a second and then jump back to line x and then continue scrolling. CleanShot.2023-12-05.at.05.16.29.mp4 |
Also noticed on same file after same repro steps if I was scrolled all the way to the bottom, and then I use my keyboard to scroll up. Just hit the keyboard button 2 times, it all the sudden jumps to the top. Not sure if this is the same issue from the other one above, but I believe this one is a regression from #17259 of which I have another PR #17499 open that moves away from the auto focus approach for other buggy reasons. CleanShot.2023-12-05.at.05.31.16.mp4 |
This comment has been minimized.
This comment has been minimized.
@steveward , @tidy-dev @tidy-dev |
Because I caused it. 🙈 I was recently working on keyboard accessibility of the expand buttons and using |
thank you @tidy-dev |
The problem
The scroll bar and content on the diff view of a file in the commit selected from the history tab is glitching.
Release version
Version 3.3.5 (x64)
Operating system
Windows 10 x64
Steps to reproduce the behavior
I use a unified view and I don't have my "hide whitespaces" checked.
I'm checking out my history, I select a commit, I select a file and I am watching the diff.
As I scroll down, I expand some of the hidden lines by clicking the arrows on the left margin on the diff code.
when I try to scroll down fast, the scrollbar and the diff scroll position glitches and flickers across a different position.
Log files
No response
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: