From d85464a7b38c0e3aaa5a517fa2adce2ec79ccf02 Mon Sep 17 00:00:00 2001 From: Benjamin Popp Date: Mon, 3 May 2021 16:24:56 -0500 Subject: [PATCH] Scrolled selection bugfix When clicking on the header of a row, select exactly that row, even if the view is scrolled a bit to the right. --- src/HexManiac.WPF/Controls/HexContent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HexManiac.WPF/Controls/HexContent.cs b/src/HexManiac.WPF/Controls/HexContent.cs index 3d00669d..1892ec82 100644 --- a/src/HexManiac.WPF/Controls/HexContent.cs +++ b/src/HexManiac.WPF/Controls/HexContent.cs @@ -349,6 +349,7 @@ namespace HavenSoft.HexManiac.WPF.Controls { if (ViewPort is ViewPort editableViewPort) { var point = e.GetPosition(this); if (point.X < 0) { + downPoint = new ModelPoint(0, downPoint.Y); editableViewPort.SelectionStart = downPoint; editableViewPort.SelectionEnd = new ModelPoint(editableViewPort.Width - 1, downPoint.Y); } else if (Keyboard.Modifiers == ModifierKeys.Shift) {