From 230e4fdf1d2c6d96c0cb6445c857b1841fa6aabb Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Thu, 16 Jan 2025 14:58:07 +0000 Subject: [PATCH] fix wrong snap point params (#17986) --- src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs b/src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs index aa62eaaf065..799b9dc9923 100644 --- a/src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs +++ b/src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs @@ -918,7 +918,7 @@ private void UpdateSnapPoints() else { _horizontalSnapPoints = new List(); - _horizontalSnapPoint = scrollSnapPointsInfo.GetRegularSnapPoints(Layout.Orientation.Vertical, VerticalSnapPointsAlignment, out _horizontalSnapPointOffset); + _horizontalSnapPoint = scrollSnapPointsInfo.GetRegularSnapPoints(Layout.Orientation.Horizontal, HorizontalSnapPointsAlignment, out _horizontalSnapPointOffset); } } else