Skip to content

Commit 5af4d4d

Browse files
committed
Don't instanciate ListView items that are just above the viewport when scrolling down
1 parent 804d18e commit 5af4d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/core/model.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ impl<C: RepeatedItemTree + 'static> Repeater<C> {
10601060
c.0 = RepeatedInstanceState::Clean;
10611061
}
10621062
let h = c.1.as_ref().unwrap().as_pin_ref().item_geometry(0).height_length();
1063-
if it_y + h >= zero || new_offset + 1 >= row_count {
1063+
if it_y + h > zero || new_offset + 1 >= row_count {
10641064
break;
10651065
}
10661066
it_y += h;

0 commit comments

Comments
 (0)