Telegram-iOS/submodules/Display
isaac d1c5d66bd3 LinkHighlightingNode: fix X-edge snap unreachable after midY snap
In drawRectsImageContent's modern path the snap loop runs midY
trimming first, leaving rects[i].maxY == rects[i+1].minY for
adjacent line rects. The X-edge snap guard then evaluated
rects[i].insetBy(dx: 0.0, dy: 1.0).intersects(rects[i+1]) — but
positive dy shrinks the rect, so after the trim the guarded
rectangle no longer intersects its neighbor (CGRect.intersects
requires positive-area overlap). Flip dy to -1.0 so the temp
rect grows and touching neighbors satisfy the guard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 11:44:05 +02:00
..
Source LinkHighlightingNode: fix X-edge snap unreachable after midY snap 2026-05-02 11:44:05 +02:00
.gitignore Add 'submodules/Display/' from commit '7bd11013ea' 2019-06-11 18:44:37 +01:00
.gitmodules Add 'submodules/Display/' from commit '7bd11013ea' 2019-06-11 18:44:37 +01:00
BUILD Remove linkopts 2023-08-25 00:07:31 +04:00