We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0eaa10 commit 71f412cCopy full SHA for 71f412c
src/Controls/src/Core/Handlers/Items/CarouselViewHandler.Windows.cs
@@ -384,7 +384,10 @@ void UpdateCurrentItem()
384
385
var currentItemPosition = GetItemPositionInCarousel(ItemsView.CurrentItem);
386
387
- if (currentItemPosition < 0 || currentItemPosition >= ItemCount || ItemsView.Position == currentItemPosition)
+ bool isOutOfBounds = currentItemPosition < 0 || currentItemPosition >= ItemCount;
388
+ bool isSamePosition = ItemsView.Position == currentItemPosition;
389
+
390
+ if (isOutOfBounds || isSamePosition)
391
{
392
return;
393
}
0 commit comments