Skip to content

Conversation

@MrSubidubi
Copy link
Member

This fixes an issue where we would search for the hovered diff hunk based on the mouse hit test computed during (or prior) editor paint instead of the mouse hit test computed prior to the mouse event invocation.

That in turn could lead to cases where moving the mouse from the editor to the project panel and then clicking a file shortly after would expand a diff hunk when actually nothing should happen in that case.

Release Notes:

  • Fixed an issue where diff hunks would sometimes erroneously toggle upon mouse clicks.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 21, 2025
@MrSubidubi MrSubidubi enabled auto-merge (squash) October 21, 2025 08:23
@MrSubidubi MrSubidubi merged commit 0aa7b7c into main Oct 21, 2025
22 checks passed
@MrSubidubi MrSubidubi deleted the diff-hunk-toggle branch October 21, 2025 08:38
MrSubidubi added a commit that referenced this pull request Oct 21, 2025
This fixes an issue where we would search for the hovered diff hunk
based on the mouse hit test computed during (or prior) editor paint
instead of the mouse hit test computed prior to the mouse event
invocation.

That in turn could lead to cases where moving the mouse from the editor
to the project panel and then clicking a file shortly after would expand
a diff hunk when actually nothing should happen in that case.

Release Notes:

- Fixed an issue where diff hunks would sometimes erroneously toggle
upon mouse clicks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

2 participants