mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
optimize: only set Offset from SyncScrollOffset while it's not focused.
This commit is contained in:
parent
d9911b3447
commit
5d1de37308
1 changed files with 1 additions and 1 deletions
|
@ -755,7 +755,7 @@ namespace SourceGit.Views
|
||||||
}
|
}
|
||||||
else if (change.Property == SyncScrollOffsetProperty)
|
else if (change.Property == SyncScrollOffsetProperty)
|
||||||
{
|
{
|
||||||
if (_scrollViewer != null)
|
if (!TextArea.IsFocused && _scrollViewer != null)
|
||||||
_scrollViewer.Offset = SyncScrollOffset;
|
_scrollViewer.Offset = SyncScrollOffset;
|
||||||
}
|
}
|
||||||
else if (change.Property == UseSyntaxHighlightingProperty)
|
else if (change.Property == UseSyntaxHighlightingProperty)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue