mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
refactor: sync scroll implement
This commit is contained in:
parent
ce35a0365d
commit
0c618998b2
3 changed files with 33 additions and 13 deletions
|
@ -5,8 +5,6 @@ using System.Text.RegularExpressions;
|
|||
using Avalonia;
|
||||
using Avalonia.Media.Imaging;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
public enum TextDiffLineType
|
||||
|
@ -61,17 +59,12 @@ namespace SourceGit.Models
|
|||
}
|
||||
}
|
||||
|
||||
public partial class TextDiff : ObservableObject
|
||||
public partial class TextDiff
|
||||
{
|
||||
public string File { get; set; } = string.Empty;
|
||||
public List<TextDiffLine> Lines { get; set; } = new List<TextDiffLine>();
|
||||
public int MaxLineNumber = 0;
|
||||
|
||||
private Vector _syncScrollOffset = Vector.Zero;
|
||||
public Vector SyncScrollOffset {
|
||||
get => _syncScrollOffset;
|
||||
set => SetProperty(ref _syncScrollOffset, value);
|
||||
}
|
||||
public Vector SyncScrollOffset = Vector.Zero;
|
||||
|
||||
public void GenerateNewPatchFromSelection(Change change, string fileBlobGuid, TextDiffSelection selection, bool revert, string output)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue