mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07: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)
|
||||
{
|
||||
if (_scrollViewer != null)
|
||||
if (!TextArea.IsFocused && _scrollViewer != null)
|
||||
_scrollViewer.Offset = SyncScrollOffset;
|
||||
}
|
||||
else if (change.Property == UseSyntaxHighlightingProperty)
|
||||
|
|
Loading…
Reference in a new issue