Skip to content

Commit

Permalink
Merge pull request #7006 from gabornemeth/issue/6677-macos
Browse files Browse the repository at this point in the history
fix stuck tooltips on macOS
  • Loading branch information
danwalmsley authored Nov 25, 2021
2 parents d3b21f5 + a38c779 commit 17c5ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/Avalonia.Native/src/OSX/window.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ -(void)setFrameSize:(NSSize)newSize
NSRect rect = NSZeroRect;
rect.size = newSize;

NSTrackingAreaOptions options = NSTrackingActiveAlways | NSTrackingMouseMoved | NSTrackingEnabledDuringMouseDrag;
NSTrackingAreaOptions options = NSTrackingActiveAlways | NSTrackingMouseMoved | NSTrackingMouseEnteredAndExited | NSTrackingEnabledDuringMouseDrag;
_area = [[NSTrackingArea alloc] initWithRect:rect options:options owner:self userInfo:nullptr];
[self addTrackingArea:_area];

Expand Down

0 comments on commit 17c5ea2

Please sign in to comment.