From 0ddea1601f99a0cad8421f60c775ebcc261ddba2 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 4 May 2026 01:56:34 +0000 Subject: [PATCH] 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. --- apps/mobile/modules/t3-review-diff/ios/T3ReviewDiffView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/modules/t3-review-diff/ios/T3ReviewDiffView.swift b/apps/mobile/modules/t3-review-diff/ios/T3ReviewDiffView.swift index 678932d5ee..1b0d947c15 100644 --- a/apps/mobile/modules/t3-review-diff/ios/T3ReviewDiffView.swift +++ b/apps/mobile/modules/t3-review-diff/ios/T3ReviewDiffView.swift @@ -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