mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
fix: sync scroll not working
This commit is contained in:
parent
1d7518a327
commit
ce35a0365d
1 changed files with 9 additions and 2 deletions
|
@ -5,6 +5,8 @@ using System.Text.RegularExpressions;
|
|||
using Avalonia;
|
||||
using Avalonia.Media.Imaging;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
public enum TextDiffLineType
|
||||
|
@ -59,12 +61,17 @@ namespace SourceGit.Models
|
|||
}
|
||||
}
|
||||
|
||||
public partial class TextDiff
|
||||
public partial class TextDiff : ObservableObject
|
||||
{
|
||||
public string File { get; set; } = string.Empty;
|
||||
public List<TextDiffLine> Lines { get; set; } = new List<TextDiffLine>();
|
||||
public int MaxLineNumber = 0;
|
||||
public Vector SyncScrollOffset { get; set; } = Vector.Zero;
|
||||
|
||||
private Vector _syncScrollOffset = Vector.Zero;
|
||||
public Vector SyncScrollOffset {
|
||||
get => _syncScrollOffset;
|
||||
set => SetProperty(ref _syncScrollOffset, value);
|
||||
}
|
||||
|
||||
public void GenerateNewPatchFromSelection(Change change, string fileBlobGuid, TextDiffSelection selection, bool revert, string output)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue