mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08:00
enhance: clear highlight chunk while scrolling out of TextArea.TextView
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user