Skip to content

Commit 8810323

Browse files
committed
fix(gutter): enable mouse events for tooltip
Add transparent background to gutter margin Canvas so mouse events are properly captured. WPF requires a Background to be set for hit-testing to work.
1 parent 7d28838 commit 8810323

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CodingWithCalvin.GitRanger/Editor/GutterMargin/BlameMargin.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public BlameMargin(IWpfTextView view, ITextDocumentFactoryService? textDocumentF
4444
var options = GeneralOptions.Instance;
4545
Width = options?.GutterWidth ?? 40;
4646
ClipToBounds = true;
47+
Background = Brushes.Transparent; // Required for mouse events to work
4748

4849
// Ensure services are initialized (in case package hasn't loaded yet)
4950
GitRangerPackage.EnsureServicesInitialized();

0 commit comments

Comments
 (0)