|
|
|
@ -1165,7 +1165,7 @@ namespace ICSharpCode.AvalonEdit.Rendering
@@ -1165,7 +1165,7 @@ namespace ICSharpCode.AvalonEdit.Rendering
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
InvalidateCursor(); |
|
|
|
|
InvalidateCursorIfMouseWithinTextView(); |
|
|
|
|
|
|
|
|
|
return finalSize; |
|
|
|
|
} |
|
|
|
@ -1636,6 +1636,15 @@ namespace ICSharpCode.AvalonEdit.Rendering
@@ -1636,6 +1636,15 @@ namespace ICSharpCode.AvalonEdit.Rendering
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
internal void InvalidateCursorIfMouseWithinTextView() |
|
|
|
|
{ |
|
|
|
|
// Don't unnecessarily call Mouse.UpdateCursor() if the mouse is outside the text view.
|
|
|
|
|
// Unnecessary updates may cause the mouse pointer to flicker
|
|
|
|
|
// (e.g. if it is over a window border, it blinks between Resize and Normal)
|
|
|
|
|
if (this.IsMouseOver) |
|
|
|
|
InvalidateCursor(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
protected override void OnQueryCursor(QueryCursorEventArgs e) |
|
|
|
|
{ |
|
|
|
|