Skip to content

Commit 247f161

Browse files
Fix #3437: InvalidOperationException when right-clicking on popupTooltip.
1 parent 7d0262d commit 247f161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ILSpy/TextView/DecompilerTextView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ void TextViewMouseHoverStopped(object sender, MouseEventArgs e)
341341

342342
void TextEditorMouseMove(object sender, MouseEventArgs e)
343343
{
344-
if (popupToolTip != null)
344+
if (popupToolTip != null && PresentationSource.FromVisual(popupToolTip.Child) != null)
345345
{
346346
double distanceToPopup = GetDistanceToPopup(e);
347347
if (distanceToPopup > distanceToPopupLimit)

0 commit comments

Comments
 (0)