Skip to content

Commit ce189d0

Browse files
Update CarouselViewHandler.Windows.cs
1 parent 3be4861 commit ce189d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Controls/src/Core/Handlers/Items/CarouselViewHandler.Windows.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ void UpdateInitialPosition()
361361

362362
if (ListViewBase.Items.Count > 0)
363363
{
364+
// Loop centering is no longer needed here: UpdateCurrentItem and UpdatePosition
365+
// now use _lastScrolledToPosition to guard against re-entry and scroll to the
366+
// correct centered position programmatically, making the explicit CenterMode block redundant.
364367
if (ItemsView.CurrentItem != null)
365368
UpdateCurrentItem();
366369
else

0 commit comments

Comments
 (0)