From 5af4d4d1a0937f329c54125045b7fdacee305e9b Mon Sep 17 00:00:00 2001 From: Arnold Loubriat Date: Tue, 21 Jan 2025 22:46:18 +0100 Subject: [PATCH] Don't instanciate ListView items that are just above the viewport when scrolling down --- internal/core/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/model.rs b/internal/core/model.rs index 3eaa6de23e2..03aef2096de 100644 --- a/internal/core/model.rs +++ b/internal/core/model.rs @@ -1060,7 +1060,7 @@ impl Repeater { c.0 = RepeatedInstanceState::Clean; } let h = c.1.as_ref().unwrap().as_pin_ref().item_geometry(0).height_length(); - if it_y + h >= zero || new_offset + 1 >= row_count { + if it_y + h > zero || new_offset + 1 >= row_count { break; } it_y += h;