Browse Source

Fix DataGrid scrolling

Stylus
Max Katz 4 years ago
parent
commit
a08ccd91cb
  1. 4
      src/Avalonia.Controls.DataGrid/DataGridCell.cs

4
src/Avalonia.Controls.DataGrid/DataGridCell.cs

@ -178,9 +178,9 @@ namespace Avalonia.Controls
{ {
var handled = OwningGrid.UpdateStateOnMouseLeftButtonDown(e, ColumnIndex, OwningRow.Slot, !e.Handled); var handled = OwningGrid.UpdateStateOnMouseLeftButtonDown(e, ColumnIndex, OwningRow.Slot, !e.Handled);
// Do not handle PointerPressed with touch, // Do not handle PointerPressed with touch or pen,
// so we can start scroll gesture on the same event. // so we can start scroll gesture on the same event.
if (e.Pointer.Type != PointerType.Touch) if (e.Pointer.Type != PointerType.Touch && e.Pointer.Type != PointerType.Pen)
{ {
e.Handled = handled; e.Handled = handled;
} }

Loading…
Cancel
Save