mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-05-20 20:28:05 -05:00
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.
This commit is contained in:
parent
7de69da17c
commit
d85464a7b3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user