Skip to content

Fix broken commit auto-scrolling - #5972

Merged
stefanhaller merged 4 commits into
masterfrom
fix-broken-commit-autoscrolling
Aug 27, 2026
Merged

Fix broken commit auto-scrolling#5972
stefanhaller merged 4 commits into
masterfrom
fix-broken-commit-autoscrolling

Conversation

@stefanhaller

Copy link
Copy Markdown
Collaborator

Fix a bug introduced in #5928: dragging a commit with auto-scrolling so that the original commit leaves the viewport, and then dragging back into the view would snap the original commit back into view.

Labeled as ignore-for-release because it's a regression in a PR that wasn't released yet.

@stefanhaller stefanhaller added the ignore-for-release This will exclude the PR from release notes label Aug 26, 2026
Drag autoscrolling deliberately keeps rendering after the test action
has returned, so view bounds can change while the test goroutine
prepares its next mouse event. Snapshot the geometry on the event loop
before translating view-relative coordinates to avoid data races. This
hasn't been a problem so far, but only because we were lucky; the added
test assertions later in this branch would cause consistent race
detector failures without this fix.
When dragging a commit with auto-scrolling so that the original commit
leaves the viewport, dragging back into the view makes the original
commit snap back into view. This is a regression that was introduced by
aebf495.
During auto-scrolling, turn off the automatic
scroll-to-make-the-selected-item-visible functionality of
PostRefreshUpdate.
@stefanhaller
stefanhaller force-pushed the fix-broken-commit-autoscrolling branch from 098fade to 35753fd Compare August 27, 2026 06:25
@stefanhaller
stefanhaller merged commit c300c31 into master Aug 27, 2026
14 checks passed
@stefanhaller
stefanhaller deleted the fix-broken-commit-autoscrolling branch August 27, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release This will exclude the PR from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant