Compare commits

...
Author SHA1 Message Date
Cursor Agent 0ddea1601f fix: use <= in firstVisibleRowIndex binary search to skip zero-height rows at viewport edge
When rowEnd exactly equals absoluteY, the row's bottom edge touches but
does not overlap the viewport, so it should not be considered visible.
Change strict < to <= to correctly skip such rows.
2026-05-04 01:56:34 +00:00
@@ -1150,7 +1150,7 @@ private final class ReviewDiffContentView: UIView, UIGestureRecognizerDelegate {
let midpoint = (lowerBound + upperBound) / 2
let rowEnd = rowOffsets[midpoint] + height(for: rows[midpoint])
if rowEnd < absoluteY {
if rowEnd <= absoluteY {
lowerBound = midpoint + 1
} else {
upperBound = midpoint