if (source == null) throw new ArgumentNullException(nameof(source));
if (collectionView == null) return;
- // Will be null if not a group.
float currentSize = StepCandidate;
int diff = toPosition - fromPosition;
int startIndex = ( diff > 0 ? fromPosition: toPosition);
int endIndex = (diff > 0 ? toPosition: fromPosition);
+ // all items are within the visual area
if ((endIndex >= FirstVisible) && (startIndex <= LastVisible))
{
foreach (RecyclerViewItem item in VisibleItems)
}
}
- if (fromPosition > FirstVisible)
+ if (fromPosition < FirstVisible)
{
if (toPosition > LastVisible)
{
}
else if (toPosition > FirstVisible && toPosition <= LastVisible)
{
- LastVisible--;
+ FirstVisible--;
}
}
else if (fromPosition >= FirstVisible && fromPosition <= LastVisible)