mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
enhance: clear highlight chunk while scrolling out of TextArea.TextView
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
03f49ccff0
commit
9590f96a44
1 changed files with 2 additions and 2 deletions
|
@ -1272,7 +1272,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnTextViewScrollChanged(object sender, ScrollChangedEventArgs e)
|
||||
{
|
||||
if (_scrollViewer is { IsExpanded: true, IsPointerOver: true })
|
||||
if (!TextArea.TextView.IsPointerOver)
|
||||
TrySetChunk(null);
|
||||
}
|
||||
|
||||
|
@ -1513,7 +1513,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
diff.SyncScrollOffset = _scrollViewer?.Offset ?? Vector.Zero;
|
||||
|
||||
if (_scrollViewer is { IsExpanded: true, IsPointerOver: true } )
|
||||
if (!TextArea.TextView.IsPointerOver)
|
||||
TrySetChunk(null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue