donandren 9 lat temu
rodzic
commit
1aaea1dd2a

+ 1 - 1
src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

@@ -116,7 +116,7 @@ namespace Avalonia.Controls.Presenters
                         CreateAndRemoveContainers();
 
                         if (e.NewStartingIndex >= FirstIndex &&
-                            e.NewStartingIndex + e.NewItems.Count <= NextIndex)
+                            e.NewStartingIndex < NextIndex)
                         {
                             RecycleContainers();
                         }