diff --git a/src/Avalonia.Controls.TreeDataGrid/Primitives/TreeDataGridRow.cs b/src/Avalonia.Controls.TreeDataGrid/Primitives/TreeDataGridRow.cs index bd6c58d5..7f345e48 100644 --- a/src/Avalonia.Controls.TreeDataGrid/Primitives/TreeDataGridRow.cs +++ b/src/Avalonia.Controls.TreeDataGrid/Primitives/TreeDataGridRow.cs @@ -167,6 +167,18 @@ protected override void OnPointerMoved(PointerEventArgs e) owner?.RaiseRowDragStarted(e); } + protected override void OnPointerReleased(PointerReleasedEventArgs e) + { + base.OnPointerReleased(e); + _mouseDownPosition = s_InvalidPoint; + } + + protected override void OnPointerCaptureLost(PointerCaptureLostEventArgs e) + { + base.OnPointerCaptureLost(e); + _mouseDownPosition = s_InvalidPoint; + } + protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) { if (change.Property == IsSelectedProperty)