Browse Source

fix wrong snap point params (#17986)

pull/18001/head
Emmanuel Hansen 1 year ago
committed by GitHub
parent
commit
230e4fdf1d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs

2
src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs

@ -918,7 +918,7 @@ namespace Avalonia.Controls.Presenters
else
{
_horizontalSnapPoints = new List<double>();
_horizontalSnapPoint = scrollSnapPointsInfo.GetRegularSnapPoints(Layout.Orientation.Vertical, VerticalSnapPointsAlignment, out _horizontalSnapPointOffset);
_horizontalSnapPoint = scrollSnapPointsInfo.GetRegularSnapPoints(Layout.Orientation.Horizontal, HorizontalSnapPointsAlignment, out _horizontalSnapPointOffset);
}
}
else

Loading…
Cancel
Save